You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-05-12 12:21:13

pawcclsc
Member
Registered: 2022-05-12
Posts: 6

GLPI 10.0.1 receivers error when special character

Hi,
I found that GLPI 10.0.1 receiver does not import tickets from mail account.
When there is a special character in message header (From contains eg ł,ą,ś,ć...) I got error:

Number of messages: available=3, already imported=0, received=3, refused=0, errors=3, blacklisted=0

All other messages are imported correctly.
Why?

Offline

#2 2022-05-12 15:00:12

pawcclsc
Member
Registered: 2022-05-12
Posts: 6

Re: GLPI 10.0.1 receivers error when special character

Debug mode enabled but I see no errors.
also no errors in apache logs.

Where can I find some details?

Offline

#3 2022-06-07 11:39:57

pawcclsc
Member
Registered: 2022-05-12
Posts: 6

Re: GLPI 10.0.1 receivers error when special character

Problem solved smile
I found in /var/www/html/glpi/files/_log/php-errors.log:

 glpiphplog.CRITICAL:   *** Uncaught Exception Laminas\Mail\Header\Exception\InvalidArgumentException: Invalid header value detected in /var/www/html/glpi/vendor/laminas/laminas-mail/src/Header/GenericHeader.php at line 59

and hashed 3 lines in that file:

#        if (! HeaderValue::isValid($parts[1])) {
#            throw new Exception\InvalidArgumentException('Invalid header value detected');
#        }

maybe not elegant but it works big_smile

Offline

#4 2022-06-07 16:50:46

dhsahay
Member
From: Delhi, India
Registered: 2022-06-02
Posts: 3

Re: GLPI 10.0.1 receivers error when special character

Hi pawcclsc,

It would be great if you can share the settings/configurations you did in GLPI 10.0.0.1 , in order to automatically generate tickets by receiving emails.

I have tried several forums however the solutions provided there seem to work with older versions of GLPI and not 10.0.0.1. I tried everything from configuring mailgate settings in "Automatic actions", and then trying to update crontab settings using command "crontab -e" on the root. However, nothing seems to work

Is there any specific version of PHP that should be used. I am using PHP 8.1.6.

Thanks a lot for your help.

Offline

#5 2022-06-08 11:26:27

pawcclsc
Member
Registered: 2022-05-12
Posts: 6

Re: GLPI 10.0.1 receivers error when special character

Hi dhsahay,
I didn't make any change in default config.
I installed GLPI 10.0.1 from the scratch on Debian GNU/Linux 11 and PHP 7.4.

Do you have any errors in in /var/www/html/glpi/files/_log/php-errors.log ?

Offline

#6 2022-06-09 22:57:37

grenona
Member
From: Canada
Registered: 2021-08-11
Posts: 47

Re: GLPI 10.0.1 receivers error when special character

Work for me , even after upgrade from 9.x to 10.0.0 and 10.0.1

Provide mail error log, php log and mail log to review the problem

Offline

Board footer

Powered by FluxBB