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.1k stars 1.27k forks source link

Child entity isn't being shown at the dropdown when created through "New user" form #13537

Closed eduardomozart closed 1 year ago

eduardomozart commented 1 year ago

Code of Conduct

Is there an existing issue for this?

Version

10.0.5

Bug description

When creating a child entity at the "New user" dropdown, it isn't being listed into the "New user" form, but it's shown as expected at the Entity dropdown when reloading manually the page.

Relevant log output

Nothing is reported ``glpi/files/_log/*-error.log`` files.

Page URL

https://glpi.example.com/front/user.form.php

Steps To reproduce

  1. Create a new user.
  2. Create a new child entity at the new user form.
  3. Entity is created but the dropdown isn't updated to show the new child entity.

Your GLPI setup information

Information about system installation & configuration
GLPI 10.0.5 ( => /home/robertinho/public_html/glpi)
Installation mode: TARBALL
Current language:en_US

Server
 
Operating system: Linux cloud.ifantasy.com.br 3.10.0-962.3.2.lve1.5.70.el7.x86_64 #1 SMP Mon May 30 08:45:55 UTC 2022 x86_64
PHP 7.4.33 litespeed (Core, PDO, Phar, Reflection, SPL, SimpleXML, bcmath, calendar, ctype, curl, date, dom, exif, fileinfo,
    filter, ftp, gd, gettext, hash, i360, iconv, imap, intl, ionCube Loader, json, ldap, libxml, litespeed, mbstring, mysqli,
    mysqlnd, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, redis, session, soap, sockets, sodium, sqlite3,
    standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="90" memory_limit="128M" post_max_size="800M" safe_mode="" session.save_handler="files"
    upload_max_filesize="500M" 
Software: Apache ()
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Server Software: MySQL Community Server (GPL)
    Server Version: 5.7.30
    Server SQL Mode: 
    Parameters: robertinho_glpi@localhost/robertinho_glpi
    Host info: Localhost via UNIX socket

PHP version (7.4.33) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, json, simplexml.
curl extension is installed.
gd extension is installed.
intl extension is installed.
libxml extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (5.7.30) is supported.
No files from previous GLPI version detected.
The log file has been created successfully.
Write access to /home/robertinho/public_html/glpi/files/_cache has been validated.
Write access to /home/robertinho/public_html/glpi/config has been validated.
Write access to /home/robertinho/public_html/glpi/files/_cron has been validated.
Write access to /home/robertinho/public_html/glpi/files has been validated.
Write access to /home/robertinho/public_html/glpi/files/_dumps has been validated.
Write access to /home/robertinho/public_html/glpi/files/_graphs has been validated.
Write access to /home/robertinho/public_html/glpi/files/_lock has been validated.
Write access to /home/robertinho/public_html/glpi/files/_pictures has been validated.
Write access to /home/robertinho/public_html/glpi/files/_plugins has been validated.
Write access to /home/robertinho/public_html/glpi/files/_rss has been validated.
Write access to /home/robertinho/public_html/glpi/files/_sessions has been validated.
Write access to /home/robertinho/public_html/glpi/files/_tmp has been validated.
Write access to /home/robertinho/public_html/glpi/files/_uploads has been validated.
The following directories should be placed outside "/home/robertinho/public_html/glpi":
‣ "/home/robertinho/public_html/glpi/files" ("GLPI_VAR_DIR")
‣ "/home/robertinho/public_html/glpi/config" ("GLPI_CONFIG_DIR")
You can ignore this suggestion if you are certain that these directories are not accessible through your web server.
PHP directive "session.cookie_secure" should be set to "on" when GLPI can be accessed on HTTPS protocol.
PHP directive "session.cookie_httponly" should be set to "on" to prevent client-side script to access cookie values.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
zip extension is installed.
bz2 extension is not present.
Zend OPcache extension is not present.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /home/robertinho/public_html/glpi/marketplace has been validated.
Access to timezone database (mysql) is not allowed.

GLPI constants
 
GLPI_ROOT: "/home/robertinho/public_html/glpi"
GLPI_CONFIG_DIR: "/home/robertinho/public_html/glpi/config"
GLPI_VAR_DIR: "/home/robertinho/public_html/glpi/files"
GLPI_MARKETPLACE_DIR: "/home/robertinho/public_html/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: false
GLPI_SERVERSIDE_URL_ALLOWLIST: ["/^(https?|feed):\\/\\/[^@:]+(\\/.*)?$/"]
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_ALLOW_OVERRIDE: true
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: true
GLPI_USER_AGENT_EXTRA_COMMENTS: ""
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: "1"
GLPI_AJAX_DASHBOARD: "1"
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: "0"
GLPI_CENTRAL_WARNINGS: "1"
GLPI_DOC_DIR: "/home/robertinho/public_html/glpi/files"
GLPI_CACHE_DIR: "/home/robertinho/public_html/glpi/files/_cache"
GLPI_CRON_DIR: "/home/robertinho/public_html/glpi/files/_cron"
GLPI_DUMP_DIR: "/home/robertinho/public_html/glpi/files/_dumps"
GLPI_GRAPH_DIR: "/home/robertinho/public_html/glpi/files/_graphs"
GLPI_LOCAL_I18N_DIR: "/home/robertinho/public_html/glpi/files/_locales"
GLPI_LOCK_DIR: "/home/robertinho/public_html/glpi/files/_lock"
GLPI_LOG_DIR: "/home/robertinho/public_html/glpi/files/_log"
GLPI_PICTURE_DIR: "/home/robertinho/public_html/glpi/files/_pictures"
GLPI_PLUGIN_DOC_DIR: "/home/robertinho/public_html/glpi/files/_plugins"
GLPI_RSS_DIR: "/home/robertinho/public_html/glpi/files/_rss"
GLPI_SESSION_DIR: "/home/robertinho/public_html/glpi/files/_sessions"
GLPI_TMP_DIR: "/home/robertinho/public_html/glpi/files/_tmp"
GLPI_UPLOAD_DIR: "/home/robertinho/public_html/glpi/files/_uploads"
GLPI_INVENTORY_DIR: "/home/robertinho/public_html/glpi/files/_inventories"
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: "/home/robertinho/public_html/glpi/locales"
GLPI_VERSION: "10.0.5"
GLPI_SCHEMA_VERSION: "10.0.5@628dbfbb91eb4caf10c35969d9162b9300b141e0"
GLPI_MARKETPLACE_PRERELEASES: false
GLPI_MIN_PHP: "7.4.0"
GLPI_MAX_PHP: "8.3.0"
GLPI_YEAR: "2022"

Libraries
 
htmlawed/htmlawed version 1.2.9 in (/home/robertinho/public_html/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.6.0 in (/home/robertinho/public_html/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/home/robertinho/public_html/glpi/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.5.0 in (/home/robertinho/public_html/glpi/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/home/robertinho/public_html/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/home/robertinho/public_html/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/home/robertinho/public_html/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/home/robertinho/public_html/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/home/robertinho/public_html/glpi/vendor/sabre/http/lib)
sabre/uri in (/home/robertinho/public_html/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/home/robertinho/public_html/glpi/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/home/robertinho/public_html/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/home/robertinho/public_html/glpi/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/home/robertinho/public_html/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/home/robertinho/public_html/glpi/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/home/robertinho/public_html/glpi/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/home/robertinho/public_html/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/home/robertinho/public_html/glpi/vendor/symfony/console)
scssphp/scssphp in (/home/robertinho/public_html/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/home/robertinho/public_html/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/home/robertinho/public_html/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/home/robertinho/public_html/glpi/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/home/robertinho/public_html/glpi/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/home/robertinho/public_html/glpi/vendor/ramsey/uuid/src)
psr/log in (/home/robertinho/public_html/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/home/robertinho/public_html/glpi/vendor/psr/simple-cache/src)
psr/cache in (/home/robertinho/public_html/glpi/vendor/psr/cache/src)
league/csv in (/home/robertinho/public_html/glpi/vendor/league/csv/src)
mexitek/phpcolors in (/home/robertinho/public_html/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/home/robertinho/public_html/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/home/robertinho/public_html/glpi/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/home/robertinho/public_html/glpi/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/home/robertinho/public_html/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/home/robertinho/public_html/glpi/vendor/paragonie/sodium_compat/src)
symfony/cache in (/home/robertinho/public_html/glpi/vendor/symfony/cache)
html2text/html2text in (/home/robertinho/public_html/glpi/vendor/html2text/html2text/src)
symfony/css-selector in (/home/robertinho/public_html/glpi/vendor/symfony/css-selector)
symfony/dom-crawler in (/home/robertinho/public_html/glpi/vendor/symfony/dom-crawler)
twig/twig in (/home/robertinho/public_html/glpi/vendor/twig/twig/src)
twig/string-extra in (/home/robertinho/public_html/glpi/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 in (/home/robertinho/public_html/glpi/vendor/symfony/polyfill-php80)
symfony/polyfill-php81 in (/home/robertinho/public_html/glpi/vendor/symfony/polyfill-php81)
symfony/polyfill-php82 in (/home/robertinho/public_html/glpi/vendor/symfony/polyfill-php82)

SQL replicas
 
Not active

Notifications
 
Way of sending emails: PHP

Plugins list
 
    gantt                Name: gantt                          Version: 1.0.2      State: Enabled                                 
        Install Method: Manual

Anything else?

Please let me know if there's anymore information I can provide to troubleshoot this issue.

eduardomozart commented 1 year ago

Decided to close this issue and to discuss about it at the issue #13541