glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.21k stars 1.28k forks source link

9.5.6 - Automatic filling of the commissioning date doesn't work #8807

Closed CireSacud26 closed 2 years ago

CireSacud26 commented 3 years ago

Hello,

The date of commissioning of equipment (computers, monitors, etc.) in Management> life cycle is no longer automatically filled in when the status of the equipment changes to "in service" while the entity's fleet configuration is compliant.

We don't have an error message in debug mode or any other information about the problem.

Regards, Eric

cedric-anne commented 3 years ago

Hi,

Unless I am wrong, this is not a GLPI core feature. Maybe it is related to this plugin: https://github.com/pluginsGLPI/uninstall . Please open your issue on corresponding plugin bug tracker.

Regards

CireSacud26 commented 3 years ago

Hi, I'm affraid to say this is a GLPI core feature : image

The Uninstall plugin is not used in our GLPI.

Regards.

cedric-anne commented 3 years ago

Indeed,

I thought you were talking about a Gestion > cycle de vie item in the main menu, not in the computer page. Maybe observing what we ask in Github issue form would prevent this kind of mistake.

So, could you please use english, add screenshots, give details about GLPI installation, ... ?

Regards

trasher commented 3 years ago

@CireSacud26 please edit your initial message and translate it in english

CireSacud26 commented 3 years ago

Of course, I retry in english the explanations of the issu with screenshots:

Our entities (root entity and sub-entities) are set to automatically fill the commissioning date ("Date de mise en service") when the status of the equipment changes to "in service". Like this: image

According this feature, for a given equipment (computer, monitor, or any else), changing his status to "in service" like this: image

Should set the commissioning date in managment field but it doesn't: image

You'll find below details of our GLPI installation [code]   GLPI 9.5.3 ( => G:) Installation mode: TARBALL

Operating system: Windows NT SWEB02 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) i586 PHP 7.4.11 cgi-fcgi (Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dom, exif, fileinfo, filter, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, readline, session, soap, sockets, sodium, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, zip, zlib) Setup: max_execution_time="300" memory_limit="128M" post_max_size="100M" safe_mode="" session.save_handler="files" upload_max_filesize="100M" Software: Microsoft-IIS/8.5 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 Server Software: MySQL Community Server (GPL) Server Version: 5.7.11-log Server SQL Mode: Parameters: root/glpi Host info: 10.10.46.86 via TCP/IP PHP version is at least 7.2.0 - Perfect! Sessions support is available - Perfect! Allocated memory > 64 Mio - Perfect! mysqli extension is installed ctype extension is installed fileinfo extension is installed json extension is installed mbstring extension is installed iconv extension is installed zlib extension is installed curl extension is installed gd extension is installed simplexml extension is installed intl extension is installed ldap extension is installed apcu extension is not present Zend OPcache extension is installed xmlrpc extension is installed CAS extension is not present exif extension is installed zip extension is installed bz2 extension is installed sodium extension is installed Database version seems correct (5.7.11) - Perfect! Timezones seems loaded in database The log file has been created successfully. Write access to G:\/config has been validated. Write access to G:\/files has been validated. Write access to G:\/files/_dumps has been validated. Write access to G:\/files/_sessions has been validated. Write access to G:\/files/_cron has been validated. Write access to G:\/files/_graphs has been validated. Write access to G:\/files/_lock has been validated. Write access to G:\/files/_plugins has been validated. Write access to G:\/files/_tmp has been validated. Write access to G:\/files/_cache has been validated. Write access to G:\/files/_rss has been validated. Write access to G:\/files/_uploads has been validated. Write access to G:\/files/_pictures has been validated. Write access to G:\/marketplace has been validated. Web access to the files directory should not be allowed but this cannot be checked automatically on this instance. Make sure access to error log file (/files/_log/php-errors.log) is forbidden; otherwise review .htaccess file and web server configuration.

GLPI_ROOT: G:\ GLPI_CONFIG_DIR: G:\/config GLPI_VAR_DIR: G:\/files GLPI_MARKETPLACE_DIR: G:\/marketplace GLPI_USE_CSRF_CHECK: 1 GLPI_CSRF_EXPIRES: 7200 GLPI_CSRF_MAX_TOKENS: 100 GLPI_USE_IDOR_CHECK: 1 GLPI_IDOR_EXPIRES: 7200 GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org GLPI_INSTALL_MODE: TARBALL GLPI_NETWORK_MAIL: glpi@teclib.com GLPI_NETWORK_SERVICES: https://services.glpi-network.com GLPI_MARKETPLACE_PRERELEASES: GLPI_USER_AGENT_EXTRA_COMMENTS: GLPI_AJAX_DASHBOARD: 1 GLPI_CALDAV_IMPORT_STATE: 0 GLPI_DEMO_MODE: 0 GLPI_FORCE_EMPTY_SQL_MODE: 1 GLPI_DOC_DIR: G:\/files GLPI_CACHE_DIR: G:\/files/_cache GLPI_CRON_DIR: G:\/files/_cron GLPI_DUMP_DIR: G:\/files/_dumps GLPI_GRAPH_DIR: G:\/files/_graphs GLPI_LOCAL_I18N_DIR: G:\/files/_locales GLPI_LOCK_DIR: G:\/files/_lock GLPI_LOG_DIR: G:\/files/_log GLPI_PICTURE_DIR: G:\/files/_pictures GLPI_PLUGIN_DOC_DIR: G:\/files/_plugins GLPI_RSS_DIR: G:\/files/_rss GLPI_SESSION_DIR: G:\/files/_sessions GLPI_TMP_DIR: G:\/files/_tmp GLPI_UPLOAD_DIR: G:\/files/_uploads GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/ GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/ GLPI_I18N_DIR: G:\/locales GLPI_VERSION: 9.5.3 GLPI_SCHEMA_VERSION: 9.5.3 GLPI_MIN_PHP: 7.2.0 GLPI_YEAR: 2020

htmlawed/htmlawed version 1.2.5 in (G:\vendor\htmlawed\htmlawed) phpmailer/phpmailer version 6.1.6 in (G:\vendor\phpmailer\phpmailer\src) simplepie/simplepie version 1.5.6 in (G:\vendor\simplepie\simplepie\library) tecnickcom/tcpdf version 6.3.5 in (G:\vendor\tecnickcom\tcpdf) michelf/php-markdown in (G:\vendor\michelf\php-markdown\Michelf) true/punycode in (G:\vendor\true\punycode\src) iamcal/lib_autolink in (G:\vendor\iamcal\lib_autolink) sabre/dav in (G:\vendor\sabre\dav\lib\DAV) sabre/http in (G:\vendor\sabre\http\lib) sabre/uri in (G:\vendor\sabre\uri\lib) sabre/vobject in (G:\vendor\sabre\vobject\lib) laminas/laminas-cache in (G:\vendor\laminas\laminas-cache\src) laminas/laminas-i18n in (G:\vendor\laminas\laminas-i18n\src) laminas/laminas-serializer in (G:\vendor\laminas\laminas-serializer\src) monolog/monolog in (G:\vendor\monolog\monolog\src\Monolog) sebastian/diff in (G:\vendor\sebastian\diff\src) elvanto/litemoji in (G:\vendor\elvanto\litemoji\src) symfony/console in (G:\vendor\symfony\console) scssphp/scssphp in (G:\vendor\scssphp\scssphp\src) laminas/laminas-mail in (G:\vendor\laminas\laminas-mail\src\Protocol) laminas/laminas-mime in (G:\vendor\laminas\laminas-mime\src) rlanvin/php-rrule in (G:\vendor\rlanvin\php-rrule\src) blueimp/jquery-file-upload in (G:\vendor\blueimp\jquery-file-upload\server\php) ramsey/uuid in (G:\vendor\ramsey\uuid\src) psr/log in (G:\vendor\psr\log\Psr\Log) psr/simple-cache in (G:\vendor\psr\simple-cache\src) mexitek/phpcolors in (G:\vendor\mexitek\phpcolors\src\Mexitek\PHPColors) guzzlehttp/guzzle in (G:\vendor\guzzlehttp\guzzle\src) guzzlehttp/psr7 in (G:\vendor\guzzlehttp\psr7\src) wapmorgan/unified-archive in (G:\vendor\wapmorgan\unified-archive\src) paragonie/sodium_compat in (G:\vendor\paragonie\sodium_compat\src)

Not active

Way of sending emails: SMTP (support@mycompany.com@smtp.mycompany.com)

 

addressing Name: Adressage IP Version: 2.9.0 State: Enabled news Name: Alertes Version: 1.8.0 State: Enabled fields Name: Champs supplémentaires Version: 1.12.0 State: Enabled accounts Name: Comptes Version: 2.6.0 State: Enabled formcreator Name: Form Creator Version: 2.10.4 State: Enabled genericobject Name: Gestion d'objets Version: 2.9.2 State: Enabled order Name: Gestion des commandes Version: 2.6.0 State: Enabled pdf Name: Impression pdf Version: 1.7.0 State: Enabled ocsinventoryng Name: OCS Inventory NG Version: 1.7.3 State: Enabled mreporting Name: Plus de rapports Version: 1.7.1 State: Enabled reports Name: Rapports Version: 1.14.0 State: Enabled

Host: 10.10.46.97Connection: OkUse the OCSNG software dictionary: No [/code]

Regards.

cedric-anne commented 3 years ago

Hi,

I tried to reproduce on a fresh GLPI 9.5.4 installation, with no active plugins, and it worked as expected.

Are you sure the entity where you create the computer inherits its configuration from the root entity ? In GLPI 9.5.4, we enhanced this part to display the inherited value: image

I do not remember if changes mades on GLPI 9.5.4 were only a visual enhancement or may have also fix some bugs in inheritance chain. You should consider upgrading to see if problem persist.

Also, you should also test with no active plugins.

If problem persist on GLPI 9.5.4 and with no active plugins, you will have to find a way to reproduce it on a clean GLPI installation in order to help us identifying the source of this issue.

Regards

CireSacud26 commented 3 years ago

Hi,

I've 2 GLPI, one for testing before production and the production one. Both are in version 9.5.3 and the issue is reproduced on both.

I upgraded successfully from 9.5.3 to 9.5.4 on testing plateform with no plugin activated but the problem persist. I've no idea on how to identify the source of this issue... I've checked the system log files and GLPI's logs without finding any clues.

I'll try to set a brand new GLPI installation from scratch and try to reproduce this.

Regards.

tsmr commented 3 years ago

Due to && ($this->getField('is_template') != NOT_AVAILABLE ) condition :

@@ -1556,10 +1558,14 @@ class CommonDBTM extends CommonGLPI {

                      // If itemtype is in infocomtype and if states_id field is filled
                      // and item not a template
+
                      if (Infocom::canApplyOn($this)
                          && in_array('states_id', $this->updates)
-                         && ($this->getField('is_template') != NOT_AVAILABLE)) {
+                         && ($this->getField('is_template')== NOT_AVAILABLE )
+
+                     ) {
cedric-anne commented 3 years ago

Due to && ($this->getField('is_template') != NOT_AVAILABLE ) condition :

@@ -1556,10 +1558,14 @@ class CommonDBTM extends CommonGLPI {

                      // If itemtype is in infocomtype and if states_id field is filled
                      // and item not a template
+
                      if (Infocom::canApplyOn($this)
                          && in_array('states_id', $this->updates)
-                         && ($this->getField('is_template') != NOT_AVAILABLE)) {
+                         && ($this->getField('is_template')== NOT_AVAILABLE )
+
+                     ) {

This $this->getField('is_template') != NOT_AVAILABLE) looks also weird to me, but it was working on a fresh GLPI instance without having to change it. Not even sure that your fix is correct, as NOT_AVAILABLE is not equal to 0, so it may prevent this to work on all objects.

tsmr commented 3 years ago

Before it was :

&& (!isset($this->input['is_template']) 
                           || !$this->input['is_template'])) {
cedric-anne commented 3 years ago

@tsmr

Did you reproduced the issue ?

cedric-anne commented 3 years ago
diff --git a/inc/commondbtm.class.php b/inc/commondbtm.class.php
index cf5766d0df..d3a11cf83a 100644
--- a/inc/commondbtm.class.php
+++ b/inc/commondbtm.class.php
@@ -1558,7 +1558,7 @@ class CommonDBTM extends CommonGLPI {
                      // and item not a template
                      if (Infocom::canApplyOn($this)
                          && in_array('states_id', $this->updates)
-                         && ($this->getField('is_template') != NOT_AVAILABLE)) {
+                         && (!$this->maybeTemplate() || !$this->isTemplate())) {
                         //Check if we have to automatical fill dates
                         Infocom::manageDateOnStatusChange($this, false);
                      }

would be more logical, but, unless I am wrong, if object is not a template, $this->getField('is_template') != NOT_AVAILABLE) will return true.

CireSacud26 commented 3 years ago

I reproduced the issue on GLPI from scratch :

Brand new GLPI 9.5.4 installed from scratch. Created 1 computer in root entity with Managment fields activated and 2 statuses items (Stock and Service).

Root entity > Management is set as Startup date = Fill when shifting to state Service.

On computer's inventory page, the created one has no status => No date in Startup date => Normal behavior I set computer's status to "Stock" => No date in Startup date => Normal behavior Changed computer's status to "Service" => No date in Startup date => Abnormal behavior

No errors in logs nor in debug.

Regards.

cedric-anne commented 3 years ago

I'm really confused, I tested again and the startup date is correctly set as long as I change the status and save the computer form.

I am using the 'glpi' user, and I have no active plugin. I even tested to deleted the date and switch back to the "service" status and date was auto filled again.

CireSacud26 commented 3 years ago

@cedric-anne I'm really disappointed too with this issue... I'm using glpi user and did the same tests as you but it don't work for me :(

I don't understand what could be wrong on my side... Could it be from my IIS web server ? It should be really tricky because all other features and plugins (on production side) are working like a charm.

cedric-anne commented 3 years ago

Maybe it is a rendering issue. I just figured out that if the JS lib used to display the calendar is broken, then the value is not displayed on the field (but is present on an hidden field).

Can you check if values are stored in glpi_infocoms (use_date field) ? Which browser are you using ?

CireSacud26 commented 3 years ago

glpi_infocoms (use_date) field is set to NULL on the GLPI from scratch database for the unique computer. But on production database there are dates and sometimes NULL.

Edit : I'm using Firefox latest version

CireSacud26 commented 3 years ago

When I set manually Startup date for the computer, glpi_infocoms (use_date) field gets the given date. So it works manually but not with the automatic filling...

CireSacud26 commented 3 years ago

Hi !

I'm back to try to give some new informations for this issue. What I did :

The change of computer's status to "Service" (and Saving the settings) does not fill the current date in Assets > Startup date. I tryed many times, from "Null" status to "Service", from "Stock" status to "Service", after filling manually a custom date and delete... without success.

I'm really wondering how you can't reproduce the issue.

If it could help, here are the system information of my latest GLPI configuration on wampserver :

[code] GLPI 9.5.4 ( => C:/wamp64/www/GLPITEST) Installation mode: TARBALL

Operating system: Windows NT W1015 10.0 build 17763 (Windows 10) AMD64 PHP 7.4.9 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, bcmath, bz2, calendar, com_dotnet, ctype, curl, date, dom, exif, fileinfo, filter, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, readline, session, soap, sockets, sodium, sqlite3, standard, tokenizer, xdebug, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib) Setup: max_execution_time="120" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files" upload_max_filesize="2M" Software: Apache/2.4.46 (Win64) PHP/7.4.9 (Apache/2.4.46 (Win64) PHP/7.4.9 Server at glpitest Port 8282) Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 Server Software: MySQL Community Server (GPL) Server Version: 5.7.31 Server SQL Mode: Parameters: root@localhost/glpitest Host info: localhost via TCP/IP PHP version is at least 7.2.0 - Perfect! Sessions support is available - Perfect! Allocated memory > 64 Mio - Perfect! mysqli extension is installed ctype extension is installed fileinfo extension is installed json extension is installed mbstring extension is installed iconv extension is installed zlib extension is installed curl extension is installed gd extension is installed simplexml extension is installed intl extension is installed ldap extension is installed apcu extension is not present Zend OPcache extension is installed xmlrpc extension is installed CAS extension is not present exif extension is installed zip extension is installed bz2 extension is installed sodium extension is installed Database version seems correct (5.7.31) - Perfect! Timezones seems not loaded, see https://glpi-install.readthedocs.io/en/latest/timezones.html. The log file has been created successfully. Write access to C:/wamp64/www/GLPITEST/files/_cache has been validated. Write access to C:/wamp64/www/GLPITEST/config has been validated. Write access to C:/wamp64/www/GLPITEST/iles/_cron has been validated. Write access to C:/wamp64/www/GLPITEST/files has been validated. Write access to C:/wamp64/www/GLPITEST/iles/_dumps has been validated. Write access to C:/wamp64/www/GLPITEST/files/_graphs has been validated. Write access to C:/wamp64/www/GLPITEST/files/_lock has been validated. Write access to C:/wamp64/www/GLPITEST/files/_pictures has been validated. Write access to C:/wamp64/www/GLPITEST/files/_plugins has been validated. Write access to C:/wamp64/www/GLPITEST/files/_rss has been validated. Write access to C:/wamp64/www/GLPITEST/files/_sessions has been validated. Write access to C:/wamp64/www/GLPITEST/files/_tmp has been validated. Write access to C:/wamp64/www/GLPITEST/files/_uploads has been validated. Write access to C:/wamp64/www/GLPITEST/marketplace has been validated. Web access to the files directory should not be allowed but this cannot be checked automatically on this instance. Make sure access to error log file (/files/_log/php-errors.log) is forbidden; otherwise review .htaccess file and web server configuration.

GLPI_ROOT: C:/wamp64/www/GLPITEST GLPI_CONFIG_DIR: C:/wamp64/www/GLPITEST/config GLPI_VAR_DIR: C:/wamp64/www/GLPITEST/files GLPI_MARKETPLACE_DIR: C:/wamp64/www/GLPITEST/marketplace GLPI_USE_CSRF_CHECK: 1 GLPI_CSRF_EXPIRES: 7200 GLPI_CSRF_MAX_TOKENS: 100 GLPI_USE_IDOR_CHECK: 1 GLPI_IDOR_EXPIRES: 7200 GLPI_ALLOW_IFRAME_IN_RICH_TEXT: GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org GLPI_INSTALL_MODE: TARBALL GLPI_NETWORK_MAIL: glpi@teclib.com GLPI_NETWORK_SERVICES: https://services.glpi-network.com GLPI_MARKETPLACE_PRERELEASES: GLPI_USER_AGENT_EXTRA_COMMENTS: GLPI_AJAX_DASHBOARD: 1 GLPI_CALDAV_IMPORT_STATE: 0 GLPI_DEMO_MODE: 0 GLPI_FORCE_EMPTY_SQL_MODE: 1 GLPI_DOC_DIR: C:/wamp64/www/GLPITEST/files GLPI_CACHE_DIR: C:/wamp64/www/GLPITEST/files/_cache GLPI_CRON_DIR: C:/wamp64/www/GLPITEST/files/_cron GLPI_DUMP_DIR: C:/wamp64/www/GLPITEST/files/_dumps GLPI_GRAPH_DIR: C:/wamp64/www/GLPITEST/files/_graphs GLPI_LOCAL_I18N_DIR: C:/wamp64/www/GLPITEST/files/_locales GLPI_LOCK_DIR: C:/wamp64/www/GLPITEST/files/_lock GLPI_LOG_DIR: C:/wamp64/www/GLPITEST/files/_log GLPI_PICTURE_DIR: C:/wamp64/www/GLPITEST/files/_pictures GLPI_PLUGIN_DOC_DIR: C:/wamp64/www/GLPITEST/files/_plugins GLPI_RSS_DIR: C:/wamp64/www/GLPITEST/files/_rss GLPI_SESSION_DIR: C:/wamp64/www/GLPITEST/files/_sessions GLPI_TMP_DIR: C:/wamp64/www/GLPITEST/files/_tmp GLPI_UPLOAD_DIR: C:/wamp64/www/GLPITEST/files/_uploads GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/ GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/ GLPI_I18N_DIR: C:/wamp64/www/GLPITEST/locales GLPI_VERSION: 9.5.4 GLPI_SCHEMA_VERSION: 9.5.4 GLPI_MIN_PHP: 7.2.0 GLPI_YEAR: 2021

htmlawed/htmlawed version 1.2.5 in (C:\wamp64\www\GLPITEST\vendor\htmlawed\htmlawed) phpmailer/phpmailer version 6.1.6 in (C:\wamp64\www\GLPITEST\vendor\phpmailer\phpmailer\src) simplepie/simplepie version 1.5.6 in (C:\wamp64\www\GLPITEST\vendor\simplepie\simplepie\library) tecnickcom/tcpdf version 6.3.5 in (C:\wamp64\www\GLPITEST\vendor\tecnickcom\tcpdf) michelf/php-markdown in (C:\wamp64\www\GLPITEST\vendor\michelf\php-markdown\Michelf) true/punycode in (C:\wamp64\www\GLPITEST\vendor\true\punycode\src) iamcal/lib_autolink in (C:\wamp64\www\GLPITEST\vendor\iamcal\lib_autolink) sabre/dav in (C:\wamp64\www\GLPITEST\vendor\sabre\dav\lib\DAV) sabre/http in (C:\wamp64\www\GLPITEST\vendor\sabre\http\lib) sabre/uri in (C:\wamp64\www\GLPITEST\vendor\sabre\uri\lib) sabre/vobject in (C:\wamp64\www\GLPITEST\vendor\sabre\vobject\lib) laminas/laminas-cache in (C:\wamp64\www\GLPITEST\vendor\laminas\laminas-cache\src) laminas/laminas-i18n in (C:\wamp64\www\GLPITEST\vendor\laminas\laminas-i18n\src) laminas/laminas-serializer in (C:\wamp64\www\GLPITEST\vendor\laminas\laminas-serializer\src) monolog/monolog in (C:\wamp64\www\GLPITEST\vendor\monolog\monolog\src\Monolog) sebastian/diff in (C:\wamp64\www\GLPITEST\vendor\sebastian\diff\src) elvanto/litemoji in (C:\wamp64\www\GLPITEST\vendor\elvanto\litemoji\src) symfony/console in (C:\wamp64\www\GLPITEST\vendor\symfony\console) scssphp/scssphp in (C:\wamp64\www\GLPITEST\vendor\scssphp\scssphp\src) laminas/laminas-mail in (C:\wamp64\www\GLPITEST\vendor\laminas\laminas-mail\src\Protocol) laminas/laminas-mime in (C:\wamp64\www\GLPITEST\vendor\laminas\laminas-mime\src) rlanvin/php-rrule in (C:\wamp64\www\GLPITEST\vendor\rlanvin\php-rrule\src) blueimp/jquery-file-upload in (C:\wamp64\www\GLPITEST\vendor\blueimp\jquery-file-upload\server\php) ramsey/uuid in (C:\wamp64\www\GLPITEST\vendor\ramsey\uuid\src) psr/log in (C:\wamp64\www\GLPITEST\vendor\psr\log\Psr\Log) psr/simple-cache in (C:\wamp64\www\GLPITEST\vendor\psr\simple-cache\src) mexitek/phpcolors in (C:\wamp64\www\GLPITEST\vendor\mexitek\phpcolors\src\Mexitek\PHPColors) guzzlehttp/guzzle in (C:\wamp64\www\GLPITEST\vendor\guzzlehttp\guzzle\src) guzzlehttp/psr7 in (C:\wamp64\www\GLPITEST\vendor\guzzlehttp\psr7\src) wapmorgan/unified-archive in (C:\wamp64\www\GLPITEST\vendor\wapmorgan\unified-archive\src) paragonie/sodium_compat in (C:\wamp64\www\GLPITEST\vendor\paragonie\sodium_compat\src)

Not active

Way of sending emails: PHP [/code]

Regards.

CireSacud26 commented 3 years ago

Hi !

Is there something new about this issue ?

Thx !

cedric-anne commented 3 years ago

Hi,

Indeed, I reproduced it when Enable the financial and administrative information by default is set to No.

Regards

CireSacud26 commented 3 years ago

Hi,

With GLPI 9.5.5 installed from scratch, I reproduce the issue with or without Enable the financial and administrative information by default sett to No nor Yes.

[code] GLPI 9.5.5 ( => C:\wamp64\www\GLPITEST) Installation mode: TARBALL

Operating system: Windows NT W1015 10.0 build 17763 (Windows 10) AMD64 PHP 7.4.9 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, bcmath, bz2, calendar, com_dotnet, ctype, curl, date, dom, exif, fileinfo, filter, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, readline, session, soap, sockets, sodium, sqlite3, standard, tokenizer, xdebug, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib) Setup: max_execution_time="120" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files" upload_max_filesize="2M" Software: Apache/2.4.46 (Win64) PHP/7.4.9 (Apache/2.4.46 (Win64) PHP/7.4.9 Server at glpitest Port 8282) Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0 Server Software: MySQL Community Server (GPL) Server Version: 5.7.31 Server SQL Mode: Parameters: root@localhost/glpitest Host info: localhost via TCP/IP PHP version is at least 7.2.0 - Perfect! Sessions support is available - Perfect! Allocated memory > 64 Mio - Perfect! mysqli extension is installed ctype extension is installed fileinfo extension is installed json extension is installed mbstring extension is installed iconv extension is installed zlib extension is installed curl extension is installed gd extension is installed simplexml extension is installed intl extension is installed ldap extension is installed apcu extension is not present Zend OPcache extension is installed xmlrpc extension is installed CAS extension is not present exif extension is installed zip extension is installed bz2 extension is installed sodium extension is installed Database version seems correct (5.7.31) - Perfect! Timezones seems not loaded, see https://glpi-install.readthedocs.io/en/latest/timezones.html. The log file has been created successfully. Write access to C:\wamp64\www\GLPITEST/files/_cache has been validated. Write access to C:\wamp64\www\GLPITEST/config has been validated. Write access to C:\wamp64\www\GLPITEST/files/_cron has been validated. Write access to C:\wamp64\www\GLPITEST/files has been validated. Write access to C:\wamp64\www\GLPITEST/files/_dumps has been validated. Write access to C:\wamp64\www\GLPITEST/files/_graphs has been validated. Write access to C:\wamp64\www\GLPITEST/files/_lock has been validated. Write access to C:\wamp64\www\GLPITEST/files/_pictures has been validated. Write access to C:\wamp64\www\GLPITEST/files/_plugins has been validated. Write access to C:\wamp64\www\GLPITEST/files/_rss has been validated. Write access to C:\wamp64\www\GLPITEST/files/_sessions has been validated. Write access to C:\wamp64\www\GLPITEST/files/_tmp has been validated. Write access to C:\wamp64\www\GLPITEST/files/_uploads has been validated. Write access to C:\wamp64\www\GLPITEST/marketplace has been validated. Web access to the files directory should not be allowed but this cannot be checked automatically on this instance. Make sure access to error log file (/files/_log/php-errors.log) is forbidden; otherwise review .htaccess file and web server configuration.

GLPI_ROOT: C:\wamp64\www\GLPITEST GLPI_CONFIG_DIR: C:\wamp64\www\GLPITEST/config GLPI_VAR_DIR: C:\wamp64\www\GLPITEST/files GLPI_MARKETPLACE_DIR: C:\wamp64\www\GLPITEST/marketplace GLPI_USE_CSRF_CHECK: 1 GLPI_CSRF_EXPIRES: 7200 GLPI_CSRF_MAX_TOKENS: 100 GLPI_USE_IDOR_CHECK: 1 GLPI_IDOR_EXPIRES: 7200 GLPI_ALLOW_IFRAME_IN_RICH_TEXT: GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org GLPI_INSTALL_MODE: TARBALL GLPI_NETWORK_MAIL: glpi@teclib.com GLPI_NETWORK_SERVICES: https://services.glpi-network.com GLPI_MARKETPLACE_PRERELEASES: GLPI_MARKETPLACE_ALLOW_OVERRIDE: 1 GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1 GLPI_USER_AGENT_EXTRA_COMMENTS: GLPI_AJAX_DASHBOARD: 1 GLPI_CALDAV_IMPORT_STATE: 0 GLPI_DEMO_MODE: 0 GLPI_FORCE_EMPTY_SQL_MODE: 1 GLPI_DOC_DIR: C:\wamp64\www\GLPITEST/files GLPI_CACHE_DIR: C:\wamp64\www\GLPITEST/files/_cache GLPI_CRON_DIR: C:\wamp64\www\GLPITEST/files/_cron GLPI_DUMP_DIR: C:\wamp64\www\GLPITEST/files/_dumps GLPI_GRAPH_DIR: C:\wamp64\www\GLPITEST/files/_graphs GLPI_LOCAL_I18N_DIR: C:\wamp64\www\GLPITEST/files/_locales GLPI_LOCK_DIR: C:\wamp64\www\GLPITEST/files/_lock GLPI_LOG_DIR: C:\wamp64\www\GLPITEST/files/_log GLPI_PICTURE_DIR: C:\wamp64\www\GLPITEST/files/_pictures GLPI_PLUGIN_DOC_DIR: C:\wamp64\www\GLPITEST/files/_plugins GLPI_RSS_DIR: C:\wamp64\www\GLPITEST/files/_rss GLPI_SESSION_DIR: C:\wamp64\www\GLPITEST/files/_sessions GLPI_TMP_DIR: C:\wamp64\www\GLPITEST/files/_tmp GLPI_UPLOAD_DIR: C:\wamp64\www\GLPITEST/files/_uploads GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/ GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/ GLPI_I18N_DIR: C:\wamp64\www\GLPITEST/locales GLPI_VERSION: 9.5.5 GLPI_SCHEMA_VERSION: 9.5.5 GLPI_MIN_PHP: 7.2.0 GLPI_YEAR: 2021

htmlawed/htmlawed version 1.2.5 in (C:\wamp64\www\GLPITEST\vendor\htmlawed\htmlawed) phpmailer/phpmailer version 6.1.6 in (C:\wamp64\www\GLPITEST\vendor\phpmailer\phpmailer\src) simplepie/simplepie version 1.5.6 in (C:\wamp64\www\GLPITEST\vendor\simplepie\simplepie\library) tecnickcom/tcpdf version 6.3.5 in (C:\wamp64\www\GLPITEST\vendor\tecnickcom\tcpdf) michelf/php-markdown in (C:\wamp64\www\GLPITEST\vendor\michelf\php-markdown\Michelf) true/punycode in (C:\wamp64\www\GLPITEST\vendor\true\punycode\src) iamcal/lib_autolink in (C:\wamp64\www\GLPITEST\vendor\iamcal\lib_autolink) sabre/dav in (C:\wamp64\www\GLPITEST\vendor\sabre\dav\lib\DAV) sabre/http in (C:\wamp64\www\GLPITEST\vendor\sabre\http\lib) sabre/uri in (C:\wamp64\www\GLPITEST\vendor\sabre\uri\lib) sabre/vobject in (C:\wamp64\www\GLPITEST\vendor\sabre\vobject\lib) laminas/laminas-cache in (C:\wamp64\www\GLPITEST\vendor\laminas\laminas-cache\src) laminas/laminas-i18n in (C:\wamp64\www\GLPITEST\vendor\laminas\laminas-i18n\src) laminas/laminas-serializer in (C:\wamp64\www\GLPITEST\vendor\laminas\laminas-serializer\src) monolog/monolog in (C:\wamp64\www\GLPITEST\vendor\monolog\monolog\src\Monolog) sebastian/diff in (C:\wamp64\www\GLPITEST\vendor\sebastian\diff\src) elvanto/litemoji in (C:\wamp64\www\GLPITEST\vendor\elvanto\litemoji\src) symfony/console in (C:\wamp64\www\GLPITEST\vendor\symfony\console) scssphp/scssphp in (C:\wamp64\www\GLPITEST\vendor\scssphp\scssphp\src) laminas/laminas-mail in (C:\wamp64\www\GLPITEST\vendor\laminas\laminas-mail\src\Protocol) laminas/laminas-mime in (C:\wamp64\www\GLPITEST\vendor\laminas\laminas-mime\src) rlanvin/php-rrule in (C:\wamp64\www\GLPITEST\vendor\rlanvin\php-rrule\src) blueimp/jquery-file-upload in (C:\wamp64\www\GLPITEST\vendor\blueimp\jquery-file-upload\server\php) ramsey/uuid in (C:\wamp64\www\GLPITEST\vendor\ramsey\uuid\src) psr/log in (C:\wamp64\www\GLPITEST\vendor\psr\log\Psr\Log) psr/simple-cache in (C:\wamp64\www\GLPITEST\vendor\psr\simple-cache\src) mexitek/phpcolors in (C:\wamp64\www\GLPITEST\vendor\mexitek\phpcolors\src\Mexitek\PHPColors) guzzlehttp/guzzle in (C:\wamp64\www\GLPITEST\vendor\guzzlehttp\guzzle\src) guzzlehttp/psr7 in (C:\wamp64\www\GLPITEST\vendor\guzzlehttp\psr7\src) wapmorgan/unified-archive in (C:\wamp64\www\GLPITEST\vendor\wapmorgan\unified-archive\src) paragonie/sodium_compat in (C:\wamp64\www\GLPITEST\vendor\paragonie\sodium_compat\src)

Not active

Way of sending emails: PHP   [/code]

Regards, Eric

github-actions[bot] commented 3 years ago

There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.

If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.

You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.

CireSacud26 commented 3 years ago

Hi,

This issue is still reproduced on latest GLPI version (9.5.6).

Regards.

github-actions[bot] commented 2 years ago

There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.

If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.

You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.

CireSacud26 commented 2 years ago

Hello,

I'm afraid to say that the issue persist for the latest GLPI version (9.5.6).

Regards.

cedric-anne commented 2 years ago

Hi,

Should be fixed by #10406

Regards