attachments listing in +text interface is wonky

Bug #210571 reported by Brian Murray
8
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Abel Deuring

Bug Description

Some bug reports have an extraneous carriage return in their +text listing. This example is from bug 202595.

attachments:
 http://launchpadlibrarian.net/12687853/Dependencies.txt text/plain; charset="utf-8"
 http://launchpadlibrarian.net/12944124/dmesg.log application/octet-stream;
 x-unix-mode=0644;
 name="dmesg.log"

I think the attachments used to be formatted and should be formatted like the first attachment. This seems to have changed last week sometime and python-launchpad-bugs is currently barfing when trying to parse these bugs.

Kees tracked this down a bit and says that "the LP email gateway is passing wrapped header lines along with newlines".

Tags: api lp-bugs
Revision history for this message
Kees Cook (kees) wrote :

If someone send email with headers that look like this:

--boundry
Content-Type: application/pdf;
 name="cow"
Content-Disposition: attachment; filename="blah.pdf"
Content-Transfer-Encoding: base64
....

Then the "content-type" field in Malone will contain a newline between "application/pdf" and "name=cow". This breaks the +text output.

Christian Reis (kiko)
Changed in malone:
importance: Undecided → High
milestone: none → 1.2.4
Abel Deuring (adeuring)
Changed in malone:
assignee: nobody → adeuring
Abel Deuring (adeuring)
Changed in malone:
status: New → In Progress
Abel Deuring (adeuring)
Changed in malone:
status: In Progress → Fix Committed
Revision history for this message
Eleanor Berger (intellectronica) wrote :

RF 6050

Revision history for this message
Brian Murray (brian-murray) wrote :

From the looks of things this should be Fix Released now is that correct?

Abel Deuring (adeuring)
Changed in malone:
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.