Email interface crashes when an attachment file name contains a slash

Bug #221938 reported by Diogo Matsubara
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Tim Penhey

Bug Description

As seen in OOPS-845CEMAIL2, the email interface crashed with a IntegrityError because the attachment filename contains slashes.

Exception type IntegrityError
Exception value ERROR: new row for relation "libraryfilealias" violates check constraint "valid_filename" INSERT INTO LibraryFileAlias (id, mimetype, expires, date_created, content, last_accessed, filename) VALUES (13865314, 'application/vnd.oasis.opendocument.spreadsheet; \\n\\tname="/tmp/bug221470.ods"', NULL, DEFAULT, 13865305, DEFAULT, '/tmp/bug221470.ods')

A copy of the original email can be found at: https://pastebin.canonical.com/4611/

Related branches

Curtis Hovey (sinzui)
Changed in malone:
status: New → Triaged
importance: Undecided → Low
Changed in launchpad:
importance: Low → Critical
Tim Penhey (thumper)
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Tim Penhey (thumper)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
milestone: none → 11.04
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Tim Penhey (thumper)
tags: added: qa-untestable
removed: qa-needstesting
Changed in launchpad:
status: Fix Committed → Fix Released
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.