MessageSet.fromEmail() can create library files having new lines in the mimetype

Bug #319207 reported by Björn Tillenius
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

When an e-mail is converted into a Message, its attachments get uploaded to the Librarian. If the attachment's content type header is folded, the folding whitespace is included in the mimetype. This causes the mimetype column to have new line characters in it, which is a problem, since the mimetype attribute is declared as TextLine.

See bug 256527 for an example of problems that may happen.

After this bug has been fixed, this SQL query should be executed to clean up the bad data: https://pastebin.canonical.com/12728/

Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.