patch parser does not accept headers with CRLF line-endings

Bug #453010 reported by Данило Шеган
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned
Launchpad itself
Fix Released
High
Unassigned

Bug Description

I've used bzr send --no-bundle to prepare a merge proposal, and I got an OOPS email back:

"Launchpad encountered an internal error during the following operation: creating a merge proposal from message with subject [MERGE] Improve CSS in two different places.. It was logged with id OOPS-1385CMP1. Sorry for the inconvenience."

I am attaching a full email (including body, not just the attached patch) for your investigation.

OOPS-1385CMP1 OOPS-1385CMP2

Related branches

Revision history for this message
Данило Шеган (danilo) wrote :
summary: - MalformedHunkHeader: Malformed hunk header. Does not match format. '@@
- -5,6 +5,7 @@\\r\\n'
+ MalformedHunkHeader: Malformed hunk header. Does not match format.
Aaron Bentley (abentley)
summary: - MalformedHunkHeader: Malformed hunk header. Does not match format.
+ patch parser does not accept headers with CRLF line-endings
Revision history for this message
Aaron Bentley (abentley) wrote :

I can't quite figure out why the diff contains CRLF's in the first place. Perhaps they were added by Evolution before it base64-encoded the merge directive?

And why did evo base64-encode it anyway? All the characters in the merge directive are ascii.

Revision history for this message
Aaron Bentley (abentley) wrote :

A workaround is to use the '--no-patch' option in bzr send.

Launchpad can fix the issue by not storing the patch from the merge directive, which is no longer used anyhow.

Changed in launchpad-code:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Данило Шеган (danilo) wrote :

It could be that Evolution in Karmic started doing this (I am not sure if I submitted any merge proposals since I got a new laptop).

Revision history for this message
Aaron Bentley (abentley) wrote :

Launchpad no longer attempts to parse externally-submitted patches, so it won't encounter CRLF line-endings in headers.

Changed in launchpad-code:
status: Triaged → Fix Released
Martin Pool (mbp)
tags: added: patch
Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.