Merge lp:~edwin-grubbs/launchpad/bug-615655-unicode-oops into lp:launchpad
Proposed by
Edwin Grubbs
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Aaron Bentley | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 11428 | ||||
Proposed branch: | lp:~edwin-grubbs/launchpad/bug-615655-unicode-oops | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
204 lines (+71/-44) 3 files modified
lib/canonical/encoding.py (+45/-31) lib/canonical/launchpad/xmlrpc/mailinglist.py (+11/-1) lib/lp/registry/doc/message-holds-xmlrpc.txt (+15/-12) |
||||
To merge this branch: | bzr merge lp:~edwin-grubbs/launchpad/bug-615655-unicode-oops | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+33428@code.launchpad.net |
Description of the change
Summary
-------
This branch fixes an oops caused by nonascii characters in an email
preventing a str from being converted to a unicode object. Normally,
this means the message is spam, but since we are not absolutely certain
that will be the case, we will just escape the offending characters and
let the mailing list manager review the email in Launchpad.
Tests
-----
./bin/test -vv -t canonical.encoding -t message-
To post a comment you must log in.
This needs some work, because 8-bit characters are only illegal in headers. (It is legal, though probably inadvisable, to use Content- transfer- encoding: 8bit or binary for message bodies.)