Hi,
I am using a GLPI v 9.5.3 with collectors configured in POP SSL.
Collectors are working but for some message, for some reason, it fails with this message in the log :
I try to change the regex in the function setType of laminas librarie but then I received this message :
To fix this issue, you should change the RegEx at this file "vendor/laminas/laminas-mail/src/Header/ContentType.php", line 114
from
_if (! preg_match('/^[a-z-]+/[a-z0-9.+-]+$/i', $type)) {_
to
_if (! preg_match('/^[a-z-]+/[*a-z0-9.+-]+$/i', $type)) {_
Hi,
As I say, I already tried to just edit the regex, but it trigger another error.
The RegEX you used was this one, including and "*" before the second "a"?
/^[a-z-]+/[*a-z0-9.+-]+$/i
We are using version 9.5.3 and I just did this fix, and messages with "image/*" are being processed correctly now, with no errors.
Hum... The * character will allow any character; maybe better to use \*
I will retry both * and * to be sure, it was 2 weeks ago, I don't remerber which one I used.
Both should have fixed the issue.
Since the fix cannot be implemented on GLPI side, please consider opening an issue (or a pull request) on laminas-mail component. I'm not able to say if the proposed fix is "correct".
Please also note the issue should be on GLPI side, if for example we try to get information on something we should'nt; but I do not think we are in that case.
Thanks for the feedback. I will test it and make the feedback here
Most helpful comment
Hum... The
*character will allow any character; maybe better to use\*