Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TWIG 'helper' do not follow HTML::showTooltip style #18946

Open
2 tasks done
eduardomozart opened this issue Feb 7, 2025 · 0 comments
Open
2 tasks done

TWIG 'helper' do not follow HTML::showTooltip style #18946

eduardomozart opened this issue Feb 7, 2025 · 0 comments

Comments

@eduardomozart
Copy link
Contributor

eduardomozart commented Feb 7, 2025

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.18-dev (Nightly build)

Bug description

When using HTML::showTooltip, the following Tooltip style is generated:

Image

But the GLPI core seems to use another style for helper parameter on TWIG templates:

Image

Relevant log output

Page URL

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

Steps To reproduce

  1. Go to any TWIG rendered page with helper parameter assigned to the field.

Your GLPI setup information

Information about system installation and configuration
GLPI 10.0.18-dev ( => /home/robertinho/public_html/glpi)
Installation mode: TARBALL
Current language:en_GB

Server
 
Operating system: Linux cloud2.srvif.com 5.14.0-503.21.1.el9_5.x86_64 #​1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025
x86_64
PHP 8.2.27 litespeed (Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, SourceGuardian, apcu, bcmath, bz2, calendar, ctype,
curl, date, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, i360, iconv, imagick, imap, intl, ionCube Loader,
json, ldap, libxml, litespeed, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql,
posix, random, readline, session, soap, sockets, sodium, sqlite3, ssh2, standard, tidy, tokenizer, xml, xmlreader, xmlwriter,
xsl, zip, zlib)
Setup: max_execution_time="600" memory_limit="128M" post_max_size="500M" safe_mode="" session.save_handler="files"
upload_max_filesize="500M" disable_functions=""
Software: Apache ()
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Server Software: MariaDB Server
Server Version: 11.4.5-MariaDB
Server SQL Mode:
Parameters: robertinho_glpi@localhost/robertinho_glpi
Host info: Localhost via UNIX socket

PHP version (8.2.27) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, filter, libxml, json, simplexml, xmlreader, xmlwriter.
curl extension is installed.
gd extension is installed.
intl extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (11.4.5) is supported.
No files from previous GLPI version detected.
The log file has been created successfully.
Write access to /home/robertinho/glpi/files/_cache has been validated.
Write access to /home/robertinho/glpi/files/_cron has been validated.
Write access to /home/robertinho/glpi/files has been validated.
Write access to /home/robertinho/glpi/files/_dumps has been validated.
Write access to /home/robertinho/glpi/files/_graphs has been validated.
Write access to /home/robertinho/glpi/files/_lock has been validated.
Write access to /home/robertinho/glpi/files/_pictures has been validated.
Write access to /home/robertinho/glpi/files/_plugins has been validated.
Write access to /home/robertinho/glpi/files/_rss has been validated.
Write access to /home/robertinho/glpi/files/_sessions has been validated.
Write access to /home/robertinho/glpi/files/_tmp has been validated.
Write access to /home/robertinho/glpi/files/_uploads has been validated.

Web server root directory configuration seems safe.
Sessions configuration is secured.
OS and PHP are relying on 64 bits integers.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
Following extensions are installed: bz2, Phar, zip.
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/glpi"
GLPI_VAR_DIR: "/home/robertinho/glpi/files"
GLPI_LOG_DIR: "/home/robertinho/glpi/files/_log"
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: "[email protected]"
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_TEXT_MAXSIZE: "4000"
GLPI_DOC_DIR: "/home/robertinho/glpi/files"
GLPI_CACHE_DIR: "/home/robertinho/glpi/files/_cache"
GLPI_CRON_DIR: "/home/robertinho/glpi/files/_cron"
GLPI_DUMP_DIR: "/home/robertinho/glpi/files/_dumps"
GLPI_GRAPH_DIR: "/home/robertinho/glpi/files/_graphs"
GLPI_LOCAL_I18N_DIR: "/home/robertinho/glpi/files/_locales"
GLPI_LOCK_DIR: "/home/robertinho/glpi/files/_lock"
GLPI_PICTURE_DIR: "/home/robertinho/glpi/files/_pictures"
GLPI_PLUGIN_DOC_DIR: "/home/robertinho/glpi/files/_plugins"
GLPI_RSS_DIR: "/home/robertinho/glpi/files/_rss"
GLPI_SESSION_DIR: "/home/robertinho/glpi/files/_sessions"
GLPI_TMP_DIR: "/home/robertinho/glpi/files/_tmp"
GLPI_UPLOAD_DIR: "/home/robertinho/glpi/files/_uploads"
GLPI_INVENTORY_DIR: "/home/robertinho/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/marketplace/"
GLPI_I18N_DIR: "/home/robertinho/public_html/glpi/locales"
GLPI_VERSION: "10.0.18-dev"
GLPI_SCHEMA_VERSION: "10.0.18-dev@d64066799f068b16ee973b377bdd13f984fe062a"
GLPI_MARKETPLACE_PRERELEASES: true
GLPI_MIN_PHP: "7.4.0"
GLPI_MAX_PHP: "8.4.0"
GLPI_YEAR: "2025"

Libraries
 
htmlawed/htmlawed version 1.2.14 in (/home/robertinho/public_html/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.8.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.8.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)
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 not found
symfony/polyfill-php81 not found
symfony/polyfill-php82 in (/home/robertinho/public_html/glpi/vendor/symfony/polyfill-php82)
league/oauth2-client in (/home/robertinho/public_html/glpi/vendor/league/oauth2-client/src/Provider)
league/oauth2-google in (/home/robertinho/public_html/glpi/vendor/league/oauth2-google/src/Provider)
thenetworg/oauth2-azure in (/home/robertinho/public_html/glpi/vendor/thenetworg/oauth2-azure/src/Provider)

SQL replicas
 
Not active

Notifications
 
Way of sending emails: PHP

Plugins list
 
gantt Name: gantt Version: 1.1.0 State: Enabled
Install Method: Manual
glpiinventory Name: GLPI Inventory Version: 1.4.0 State: Enabled
Install Method: Manual
addressing Name: IP Addressing Version: 3.0.3 State: Enabled
Install Method: Manual
singlesignon Name: Logon Único Version: 1.3.5 State: Enabled
Install Method: Manual

Anything else?

The twig page that generates the "Email followups configuration" form: https://github.com/glpi-project/glpi/blob/d11271d3d9565cdba53a6a18c74cde0e8e413a30/templates/pages/setup/notification/mailing_setting.html.twig

I was unable to find which function 'helper' refers to so I couldn't fix the code myself, I believe it maybe an external GLPI dependency vendor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant