fusioninventory-for-glpi icon indicating copy to clipboard operation
fusioninventory-for-glpi copied to clipboard

Locked fields in Computer

Open vollkommenIrrelevant opened this issue 3 years ago • 11 comments

Describe the bug

Page Computer => Select one Computer => Action => locked (fields) The Window which opens is empty. It's not possible to unlock a locked field.

Page(s) URL

https://URL_TO_GLPI_INSTALLATION/front/computer.form.php?id=XXXX

To reproduce

Steps to reproduce the behavior:

  1. Go to Page Computer
  2. Select one Computer
  3. Click on Action and locked (fields) (in german language Sperrungen (felder))
  4. See error The Window which opens is empty.

Expected behavior

Having a possibility to unlock locked fields.

Logs

paste logs here
Find them in *-error.log files under glpi/files/_log/

In this folder are no logs, only remove.txt

Screenshots

1 2

Your GLPI setup (you can find it in Setup > General menu, System tab)


<!--StartFragment-->
[code] &nbsp; GLPI 9.5.5 ( =&gt; /var/www/glpi) Installation mode: TARBALL
--

Operating system: Linux glpi 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 PHP 7.3.20-1+ubuntu16.04.1+deb.sury.org+1 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, 	apache2handler, apc, apcu, bcmath, bz2, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, 	intl, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, sockets, sodium, 	standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib) Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files" 	upload_max_filesize="2M"  Software: Apache/2.4.18 (Ubuntu) (Apache/2.4.18 (Ubuntu) Server at glpi._DOMAIN_.local Port 443) 	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Server Software: (Ubuntu) 	Server Version: 5.7.33-0ubuntu0.16.04.1 	Server SQL Mode:  	Parameters: glpi@localhost/glpi 	Host info: Localhost via UNIX socket 	 PHP version is at least 7.2.0 - Perfect! Sessions support is available - Perfect! Allocated memory &gt; 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 not present apcu extension is installed Zend OPcache extension is installed xmlrpc extension is not present CAS extension is installed exif extension is installed zip extension is installed bz2 extension is installed sodium extension is installed Database version seems correct (5.7.33) - Perfect! Access to timezone database (mysql) is not allowed. The log file has been created successfully. Write access to /var/www/glpi/files/_cache has been validated. Write access to /var/www/glpi/config has been validated. Write access to /var/www/glpi/files/_cron has been validated. Write access to /var/www/glpi/files has been validated. Write access to /var/www/glpi/files/_dumps has been validated. Write access to /var/www/glpi/files/_graphs has been validated. Write access to /var/www/glpi/files/_lock has been validated. Write access to /var/www/glpi/files/_pictures has been validated. Write access to /var/www/glpi/files/_plugins has been validated. Write access to /var/www/glpi/files/_rss has been validated. Write access to /var/www/glpi/files/_sessions has been validated. Write access to /var/www/glpi/files/_tmp has been validated. Write access to /var/www/glpi/files/_uploads has been validated. Write access to /var/www/glpi/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: /var/www/glpi GLPI_CONFIG_DIR: /var/www/glpi/config GLPI_VAR_DIR: /var/www/glpi/files GLPI_MARKETPLACE_DIR: /var/www/glpi/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: [email protected] 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: /var/www/glpi/files GLPI_CACHE_DIR: /var/www/glpi/files/_cache GLPI_CRON_DIR: /var/www/glpi/files/_cron GLPI_DUMP_DIR: /var/www/glpi/files/_dumps GLPI_GRAPH_DIR: /var/www/glpi/files/_graphs GLPI_LOCAL_I18N_DIR: /var/www/glpi/files/_locales GLPI_LOCK_DIR: /var/www/glpi/files/_lock GLPI_LOG_DIR: /var/www/glpi/files/_log GLPI_PICTURE_DIR: /var/www/glpi/files/_pictures GLPI_PLUGIN_DOC_DIR: /var/www/glpi/files/_plugins GLPI_RSS_DIR: /var/www/glpi/files/_rss GLPI_SESSION_DIR: /var/www/glpi/files/_sessions GLPI_TMP_DIR: /var/www/glpi/files/_tmp GLPI_UPLOAD_DIR: /var/www/glpi/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: /var/www/glpi/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 (/var/www/glpi/vendor/htmlawed/htmlawed) phpmailer/phpmailer version 6.1.6 in (/var/www/glpi/vendor/phpmailer/phpmailer/src) simplepie/simplepie version 1.5.6 in (/var/www/glpi/vendor/simplepie/simplepie/library) tecnickcom/tcpdf version 6.3.5 in (/var/www/glpi/vendor/tecnickcom/tcpdf) michelf/php-markdown in (/var/www/glpi/vendor/michelf/php-markdown/Michelf) true/punycode in (/var/www/glpi/vendor/true/punycode/src) iamcal/lib_autolink in (/var/www/glpi/vendor/iamcal/lib_autolink) sabre/dav in (/var/www/glpi/vendor/sabre/dav/lib/DAV) sabre/http in (/var/www/glpi/vendor/sabre/http/lib) sabre/uri in (/var/www/glpi/vendor/sabre/uri/lib) sabre/vobject in (/var/www/glpi/vendor/sabre/vobject/lib) laminas/laminas-cache in (/var/www/glpi/vendor/laminas/laminas-cache/src) laminas/laminas-i18n in (/var/www/glpi/vendor/laminas/laminas-i18n/src) laminas/laminas-serializer in (/var/www/glpi/vendor/laminas/laminas-serializer/src) monolog/monolog in (/var/www/glpi/vendor/monolog/monolog/src/Monolog) sebastian/diff in (/var/www/glpi/vendor/sebastian/diff/src) elvanto/litemoji in (/var/www/glpi/vendor/elvanto/litemoji/src) symfony/console in (/var/www/glpi/vendor/symfony/console) scssphp/scssphp in (/var/www/glpi/vendor/scssphp/scssphp/src) laminas/laminas-mail in (/var/www/glpi/vendor/laminas/laminas-mail/src/Protocol) laminas/laminas-mime in (/var/www/glpi/vendor/laminas/laminas-mime/src) rlanvin/php-rrule in (/var/www/glpi/vendor/rlanvin/php-rrule/src) blueimp/jquery-file-upload in (/var/www/glpi/vendor/blueimp/jquery-file-upload/server/php) ramsey/uuid in (/var/www/glpi/vendor/ramsey/uuid/src) psr/log in (/var/www/glpi/vendor/psr/log/Psr/Log) psr/simple-cache in (/var/www/glpi/vendor/psr/simple-cache/src) mexitek/phpcolors in (/var/www/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors) guzzlehttp/guzzle in (/var/www/glpi/vendor/guzzlehttp/guzzle/src) guzzlehttp/psr7 in (/var/www/glpi/vendor/guzzlehttp/psr7/src) wapmorgan/unified-archive in (/var/www/glpi/vendor/wapmorgan/unified-archive/src) paragonie/sodium_compat in (/var/www/glpi/vendor/paragonie/sodium_compat/src) phpCas version 1.3.3 in (/usr/share/php)

Not active

Way of sending emails: SMTP ([email protected])

&nbsp;

fields               Name: Additionnal fields             Version: 1.11.0     State: Enabled 	datainjection        Name: Data injection                 Version: 2.8.0      State: Enabled 	fusioninventory      Name: FusionInventory                Version: 9.5+3.0    State: Enabled 	genericobject        Name: Objects management             Version: 2.9.0      State: Enabled 	printlabel           Name: Print Label                    Version: 0.0.1      State: Enabled 	printlabelprinter    Name: Print Label Printer            Version: 0.0.1      State: Enabled
[/code]


<!--EndFragment-->


Additional context

Add any other context about the problem here.

vollkommenIrrelevant avatar Aug 09 '21 08:08 vollkommenIrrelevant

Nobody who is having an idea what to do?

vollkommenIrrelevant avatar Aug 16 '21 11:08 vollkommenIrrelevant

bump....

vollkommenIrrelevant avatar Aug 18 '21 14:08 vollkommenIrrelevant

Make a bugreport they told... It will be great the told....

vollkommenIrrelevant avatar Aug 19 '21 14:08 vollkommenIrrelevant

bump

vollkommenIrrelevant avatar Aug 24 '21 09:08 vollkommenIrrelevant

Ok, I found the solution: The Menue from the screenshot above is brocken. But it is possible to unlock the fields with the "mass-edit-options" (or what's the correct name) if you choose Computer->Select checkboxes, Update and than Locks->Fields

vollkommenIrrelevant avatar Aug 24 '21 12:08 vollkommenIrrelevant

The issue is reported as fixed (#3115) but is still present in 9.5+3.0 after updating the plugin with the following steps: disabling plugin from GLPI setp backing up /plugins/fusioninventory folder removing it placing the new fusioninventory folder in the /plugins folder chown-ing the folder and contents to www-data (as it was before) checking that permissions are the same as before re-enabling and updating plugin from GLPI setup After that, plugin reports as 9.5+3.0 but the action "lock fields" from each computer is still "blank" As the referenced issue mentioned, doing a work around by using the mass edit option did work to unlock the fields. How can I help to really squash this bug?

robertoetcheverryr avatar Sep 24 '21 17:09 robertoetcheverryr

bump

vollkommenIrrelevant avatar Sep 30 '21 13:09 vollkommenIrrelevant

bump

vollkommenIrrelevant avatar Nov 03 '21 13:11 vollkommenIrrelevant

If you have a blank page, check the error in you webserver error logs (apache, nginx...).

ddurieux avatar Nov 03 '21 13:11 ddurieux

There are no entries and the page is not completely blank (have a look at the screenshot above). I think there is a bug which results in failed showing a gui-view or something like this.

vollkommenIrrelevant avatar Nov 03 '21 13:11 vollkommenIrrelevant

Ps. Thank you for your reply and your work.

vollkommenIrrelevant avatar Nov 03 '21 15:11 vollkommenIrrelevant