Closed Edgar-GC-Junior closed 2 years ago
Hi,
I copy/pasted your headers, changed to Content-Type: text/plain; charset=utf-8
and add some body lines, and succeed to create a ticket from the corresponding email. I made the test on GLPI 9.5.8, with both PHP 7.2.34 and 8.0.21.
Could you please provide a complete eml file that can be used to reproduce the issue ?
Erro no evento S2200, S2206 e S2230 (1).zip
Hi Cedric-anne.
Please find the attached file.
Thank you!!
As far as I understand, e-mail headers should only contains US-ASCII chars (see https://datatracker.ietf.org/doc/html/rfc2822#section-2.2).
Problem here is that the X-Ham-Report
header of your email contains special chars (in está pendente já há algum tempo – Está impactando
string). We are using an external lib to fetch emails, and I doubt we would be able to change their policy to accept "invalid" chars (see https://github.com/laminas/laminas-mail/blob/2.16.x/src/Header/HeaderValue.php#L64 ).
You may try to open an issue or a PR on their repository. If a fix is accepted, we would be able to include it in a future version of GLPI.
You may also try to report this issue to your antispam solution editor.
I am closing this issue as we cannot do anything for this on GLPI side.
Code of Conduct
Is there an existing issue for this?
Version
9.5.7
Bug description
Hello!
I've got an error (below) when I send an email from (Microsoft Office 365). Gmail and others works fine.
[2022-06-27 12:55:56] glpiphplog.CRITICAL: *** Uncaught Exception Laminas\Mail\Header\Exception\InvalidArgumentException: Invalid header value detected in /home/administrator/public_html/glpi/vendor/laminas/laminas-mail/src/Header/GenericHeader.php at line 64 Backtrace : vendor/laminas/laminas-mail/src/Headers.php:544 Laminas\Mail\Header\GenericHeader::splitHeaderLine() vendor/laminas/laminas-mail/src/Headers.php:284 Laminas\Mail\Headers->loadHeader() vendor/laminas/laminas-mail/src/Headers.php:105 Laminas\Mail\Headers->addHeaderLine() ...r/laminas/laminas-mail/src/Storage/Part.php:113 Laminas\Mail\Headers::fromString() ...laminas/laminas-mail/src/Storage/Message.php:53 Laminas\Mail\Storage\Part->construct() ...or/laminas/laminas-mail/src/Storage/Pop3.php:64 Laminas\Mail\Storage\Message->construct() ...aminas-mail/src/Storage/AbstractStorage.php:268 Laminas\Mail\Storage\Pop3->getMessage() inc/mailcollector.class.php:721 Laminas\Mail\Storage\AbstractStorage->current() front/mailcollector.form.php:88 MailCollector->collect()
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
[code] GLPI 9.5.7 ( => /home/administrator/public_html/glpi) Installation mode: TARBALL Current language:pt_BR
Operating system: Linux srv01vps.agante.com.br 3.10.0-1160.53.1.el7.x86_64 #1 SMP Fri Jan 14 13:59:45 UTC 2022 x86_64 PHP 8.0.20 fpm-fcgi (Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, memcached, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, pdo_mysql, pdo_sqlite, posix, pspell, session, shmop, soap, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, 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 () Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36 Server Software: MariaDB Server Server Version: 10.3.35-MariaDB Server SQL Mode: Parameters: glpi@162.241.102.45/glpi Host info: 162.241.102.45 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 not present exif extension is installed zip extension is installed bz2 extension is installed sodium extension is installed Database version seems correct (10.3.35) - Perfect! Timezones seems loaded in database The log file has been created successfully. Write access to /home/administrator/public_html/glpi/files/_cache has been validated. Write access to /home/administrator/public_html/glpi/config has been validated. Write access to /home/administrator/public_html/glpi/files/_cron has been validated. Write access to /home/administrator/public_html/glpi/files has been validated. Write access to /home/administrator/public_html/glpi/files/_dumps has been validated. Write access to /home/administrator/public_html/glpi/files/_graphs has been validated. Write access to /home/administrator/public_html/glpi/files/_lock has been validated. Write access to /home/administrator/public_html/glpi/files/_pictures has been validated. Write access to /home/administrator/public_html/glpi/files/_plugins has been validated. Write access to /home/administrator/public_html/glpi/files/_rss has been validated. Write access to /home/administrator/public_html/glpi/files/_sessions has been validated. Write access to /home/administrator/public_html/glpi/files/_tmp has been validated. Write access to /home/administrator/public_html/glpi/files/_uploads has been validated. Write access to /home/administrator/public_html/glpi/marketplace has been validated. Web access to files directory is protected
Anything else?
No response