Incoming email processing fails with NullPointerException when an attachment/inline part has no filename
#3200
-
State changed as build OD-8763 (16.9.7) is successful
-
OneDev
changed state to 'Closed' 1 month ago
Previous Value Current Value Open
Closed
| Type |
Bug
|
| Priority |
Major
|
| Assignee | |
| Affected Versions |
12.0.1
|
| Labels |
No labels
|
Issue Votes (0)
Service desk emails from one particular email client (Titan) fail to process. This happens both when opening an issue and when adding a comment. The sender gets "OneDev is unable to process your message" with:
Server log:
The same trace occurs via
openIssue(DefaultMailManager.java:703)for new issues.It looks like
fillAttachmentspasses the part's filename toMimeUtility.decodeTextwithout a null check. The failing emails contain a MIME part treated as an attachment or inline item (likely an inline image) with no filename. Emails from other clients process normally.Expected: parts without a filename are either skipped or given a generated name, and the email is processed.
I'm not sure if it's related to other "similar issues" offered. First noticed it on 12.0.1.