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

Critical error : MailCollector with an email who contain empty subject #7886

Closed
mat44444 opened this issue Aug 26, 2020 · 1 comment
Closed

Comments

@mat44444
Copy link

mat44444 commented Aug 26, 2020

Describe the bug

When a email with empty subject is in MailCollector box we got:
Blank page when launch manually the process,
Or the job is stunc in status: In process in the automatic job

Page(s) URL

If applicable, page(s) URL where the bug happens.

To reproduce

Steps to reproduce the behavior:

  1. Have a working MailCollector on a configured mailbox
  2. Send a email with empty subject
  3. Force the mail collector to launch
  4. See error

Expected behavior

At least, handle the error, log a warning and skip the mail.
The better option, should be replys to the sender and said the request could not be handle because there not subject in email and flush the email

Logs

[2020-08-26 13:05:15] glpiphplog.CRITICAL:   *** Uncaught Exception Laminas\Mail\Storage\Exception\InvalidArgumentException: Header with Name subject or subject not found in /opt/www/gri.dmz.urgences-sante.qc.ca/html/vendor/laminas/laminas-mail/src/Storage/Part.php at line 307
  Backtrace :
  ...r/laminas/laminas-mail/src/Storage/Part.php:376 Laminas\Mail\Storage\Part->getHeader()
  inc/mailcollector.class.php:1035                   Laminas\Mail\Storage\Part->__get()
  inc/mailcollector.class.php:734                    MailCollector->buildTicket()
  front/mailcollector.form.php:77                    MailCollector->collect()
  

Screenshots

If applicable, add screenshots to help explain your problem.
image

Your GLPI setup (you can find it in Setup > General menu, System tab)

Additional context

Add any other context about the problem here.

@mat44444 mat44444 changed the title Critical error : MailCollector with a email with empty subject Critical error : MailCollector with an email who contain empty subject Aug 26, 2020
@cedric-anne
Copy link
Member

Hi,

It duplicates #7790 and has been fixed in #7748.

Regards

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

No branches or pull requests

2 participants