Merge lp://qastaging/~thumper/launchpad/strip-email-attachment-path into lp://qastaging/launchpad

Proposed by Tim Penhey
Status: Merged
Approved by: Robert Collins
Approved revision: no longer in the source branch.
Merged at revision: 12563
Proposed branch: lp://qastaging/~thumper/launchpad/strip-email-attachment-path
Merge into: lp://qastaging/launchpad
Diff against target: 66 lines (+30/-1)
2 files modified
lib/canonical/launchpad/database/message.py (+3/-1)
lib/canonical/launchpad/database/tests/test_message.py (+27/-0)
To merge this branch: bzr merge lp://qastaging/~thumper/launchpad/strip-email-attachment-path
Reviewer Review Type Date Requested Status
Robert Collins (community) Approve
Ian Booth (community) *code Approve
Review via email: mp+52159@code.qastaging.launchpad.net

Commit message

[r=lifeless,wallyworld][bug=221938] Strip any path information off email attachments when storing in the librarian.

Description of the change

Another relatively trivial email OOPS.

The attachment disposition may specify a path in the filename, but the librarian database table really doesn't like that, so we strip it off.

To post a comment you must log in.
Revision history for this message
Ian Booth (wallyworld) wrote :

Looks good to me. Nice test.

review: Approve (*code)
Revision history for this message
Robert Collins (lifeless) wrote :

If you use the fake librarian you can do without the commit() and the test will be faster. This is optional but *highly* recommended.

review: Approve
Revision history for this message
Tim Penhey (thumper) wrote :

I got weird failures when attempting to use the fake librarian. Didn't dive too deep as trying to clear current work in progress. Still using the real librarian.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.