You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using version 10.0.15, the notification for tickets not solved in X days had been working fine on our weekly notification schedule for this item. After upgrading to 10.0.17, our alert for tickets not closed quick parsing the tags correctly.
Prior to 10.0.17, our code block in the HTML notification template translation looked like this:
After updating to 10.0.17, the only way I can get the tags to parse in the above code block is to remove the ##IFticket.status=Pending## and related tags, making the above code block look like this:
I have tried various combinations of the above, and also tried switching to ##IFticket.storestatus=4## in place of the ##IFticket.status=Pening##, but nothing seems to work at this point. It seems related to the fact that I'm embedding it within a FOREACH block, and I have ran into "embedding" issues in some of our other templates that forced me to be creative on how I built out our templates.
Basically, just need a way for the alertnotclosed notification to allow for excluding pending tickets, or for specifying the ticket status to include. This could be an alert configuraiton option on the automatic action, or it could be a "code" solution in my HTML.....which is what was working prior to 10.0.17.
Relevant log output
Page URL
No response
Steps To reproduce
Upgrade or install 10.0.17
Make the HTML code for the notification fired by the automatic action "alertnotclosed" like the attached code.
PHP version (8.3.12) 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 (10.5.22) is supported.
No files from previous GLPI version detected.
The log file has been created successfully.
Write access to /var/lib/glpi/_cache has been validated.
Write access to /var/lib/glpi/_cron has been validated.
Write access to /var/lib/glpi has been validated.
Write access to /var/lib/glpi/_dumps has been validated.
Write access to /var/lib/glpi/_graphs has been validated.
Write access to /var/lib/glpi/_lock has been validated.
Write access to /var/lib/glpi/_pictures has been validated.
Write access to /var/lib/glpi/_plugins has been validated.
Write access to /var/lib/glpi/_rss has been validated.
Write access to /var/lib/glpi/_sessions has been validated.
Write access to /var/lib/glpi/_tmp has been validated.
Write access to /var/lib/glpi/_uploads has been validated.
For security reasons, SELinux mode should be Enforcing.
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 installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /var/www/html/glpi/marketplace has been validated.
Timezones seems loaded in database.
htmlawed/htmlawed version 1.2.14 in (/var/www/html/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.8.0 in (/var/www/html/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/var/www/html/glpi/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.4.4 in (/var/www/html/glpi/marketplace/pdf/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/var/www/html/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/html/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/var/www/html/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/var/www/html/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/var/www/html/glpi/vendor/sabre/http/lib)
sabre/uri in (/var/www/html/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/var/www/html/glpi/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/var/www/html/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/var/www/html/glpi/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/var/www/html/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/var/www/html/glpi/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/var/www/html/glpi/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/var/www/html/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/var/www/html/glpi/vendor/symfony/console)
scssphp/scssphp in (/var/www/html/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/var/www/html/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/var/www/html/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/var/www/html/glpi/vendor/rlanvin/php-rrule/src)
ramsey/uuid in (/var/www/html/glpi/vendor/ramsey/uuid/src)
psr/log in (/var/www/html/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/var/www/html/glpi/vendor/psr/simple-cache/src)
psr/cache in (/var/www/html/glpi/vendor/psr/cache/src)
league/csv in (/var/www/html/glpi/vendor/league/csv/src)
mexitek/phpcolors in (/var/www/html/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/var/www/html/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/var/www/html/glpi/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/var/www/html/glpi/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/var/www/html/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/var/www/html/glpi/vendor/paragonie/sodium_compat/src)
symfony/cache in (/var/www/html/glpi/vendor/symfony/cache)
html2text/html2text in (/var/www/html/glpi/vendor/html2text/html2text/src)
symfony/css-selector in (/var/www/html/glpi/vendor/symfony/css-selector)
symfony/dom-crawler in (/var/www/html/glpi/vendor/symfony/dom-crawler)
twig/twig in (/var/www/html/glpi/vendor/twig/twig/src)
twig/string-extra in (/var/www/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 (/var/www/html/glpi/vendor/symfony/polyfill-php82)
league/oauth2-client in (/var/www/html/glpi/vendor/league/oauth2-client/src/Provider)
league/oauth2-google in (/var/www/html/glpi/vendor/league/oauth2-google/src/Provider)
thenetworg/oauth2-azure in (/var/www/html/glpi/vendor/thenetworg/oauth2-azure/src/Provider)
Well, as luck would have it, I've found a work-around (but don't know what changed from 10.0.15 to 10.0.17). While making adjustments to the HTML to remove the ##IFticket.status=Pending## code block, I was hoping to just keep it commented and move it in the code. So this:
Not sure why that would make a difference other than there's an extra carriage return in there....but the tags are still commented out. Either way....would be good to know what changed, but I'm good with this adjustment in my code as it renders the results I was trying to achieve and am used to in the prior GLPI version.
I tried adding these cases to our automatic tests to verify the templates worked properly, but even the template you specify works doesn't work correctly. I was seeing the IF/ELSE tags in the final notification. I wasn't able to find a template that worked properly at all with IF/ELSE inside FOR tags.
Code of Conduct
Is there an existing issue for this?
Version
10.0.17
Bug description
Using version 10.0.15, the notification for tickets not solved in X days had been working fine on our weekly notification schedule for this item. After upgrading to 10.0.17, our alert for tickets not closed quick parsing the tags correctly.
Prior to 10.0.17, our code block in the HTML notification template translation looked like this:
After updating to 10.0.17, the only way I can get the tags to parse in the above code block is to remove the ##IFticket.status=Pending## and related tags, making the above code block look like this:
I have tried various combinations of the above, and also tried switching to ##IFticket.storestatus=4## in place of the ##IFticket.status=Pening##, but nothing seems to work at this point. It seems related to the fact that I'm embedding it within a FOREACH block, and I have ran into "embedding" issues in some of our other templates that forced me to be creative on how I built out our templates.
Basically, just need a way for the alertnotclosed notification to allow for excluding pending tickets, or for specifying the ticket status to include. This could be an alert configuraiton option on the automatic action, or it could be a "code" solution in my HTML.....which is what was working prior to 10.0.17.
Relevant log output
Page URL
No response
Steps To reproduce
alertnotclosed-ticketnotification.txt
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Locales overrides
Anything else?
No response
The text was updated successfully, but these errors were encountered: