Email interface crashes when an attachment file name contains a slash
Bug #221938 reported by
Diogo Matsubara
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/
A copy of the original email can be found at: https:/
Related branches
lp:~thumper/launchpad/strip-email-attachment-path
- Robert Collins (community): Approve
- Ian Booth (community): Approve (*code)
-
Diff: 66 lines (+30/-1)2 files modifiedlib/canonical/launchpad/database/message.py (+3/-1)
lib/canonical/launchpad/database/tests/test_message.py (+27/-0)
Changed in malone: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in launchpad: | |
importance: | Low → Critical |
Changed in launchpad: | |
status: | Triaged → In Progress |
assignee: | nobody → 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.
Fixed in stable r12563 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 12563>.