[16:57:37:843]|[01-03-2024]|[com.manageengine.servicedesk.mail.core.ProcessMailMessage]|[INFO]|[285]: Inside extractAttachments...|
[16:57:37:843]|[01-03-2024]|[com.manageengine.servicedesk.mailutils.MailAPI]|[INFO]|[285]: Inside replaceSpecialCharactersForMailAttachments - before replacement :: 杭州市新引进应届大学生租房补贴信息收集表-ZJY. xlsx|
[16:57:37:843]|[01-03-2024]|[com.manageengine.servicedesk.mailutils.MailAPI]|[INFO]|[285]: after replacement :: 杭州市新引进应届大学生租房补贴信息收集表-ZJY. xlsx|
[16:57:37:843]|[01-03-2024]|[com.manageengine.servicedesk.mailutils.MailAPI]|[SEVERE]|[285]: Exeption while trying to validate the file - 杭州市新引进应届大学生租房补贴信息收集表-ZJY. xlsx|
[16:57:37:843]|[01-03-2024]|[SYSERR]|[INFO]|[285]: java.lang.NullPointerException|
[16:57:37:843]|[01-03-2024]|[SYSERR]|[INFO]|[285]: at com.manageengine.servicedesk.mailutils.MailAPI.isValidAttachment(MailAPI.java:2903)|
[16:57:37:843]|[01-03-2024]|[SYSERR]|[INFO]|[285]: at com.manageengine.servicedesk.mail.core.IncomingMail.addAttachment(IncomingMail.java:619)|
[16:57:37:843]|[01-03-2024]|[SYSERR]|[INFO]|[285]: at com.manageengine.servicedesk.mail.core.ProcessMailMessage.extractAttachments(ProcessMailMessage.java:1476)|
[16:57:37:843]|[01-03-2024]|[SYSERR]|[INFO]|[285]: at com.manageengine.servicedesk.mail.core.ProcessMailMessage.processMailContent(ProcessMailMessage.java:1344)|
Cause :
In some of the customer environment, We could find that some of the emails with attachments that a space in the extensions are failed to fetch. This causes mail fetching failure with the above traces.
Fix :
In the attached fix, we have removed that extra space, when validating the attachment in the mails during the process of mail fetching.