Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388017 - Bugzilla sends malformed patches in some cases
Summary: Bugzilla sends malformed patches in some cases
Status: RESOLVED DUPLICATE of bug 251286
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Bugzilla Admins
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 17:35 UTC by Michał Górny
Modified: 2011-10-30 23:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-10-21 17:35:55 UTC
$ wget 'https://bugs.gentoo.org/attachment.cgi?id=287485&action=diff&context=patch&collapsed=&headers=1&format=raw'

and you'll notice that the created .patch file doesn't contain any added lines, just removals. You'll also notice the line counts don't match. That's because bugzie, for some reason, removed all lines starting with '++'.

'Accept' or 'User-Agent' may be relevant, as Opera gets correct patch contents.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-10-21 17:36:52 UTC
(In reply to comment #0)
> 'Accept' or 'User-Agent' may be relevant, as Opera gets correct patch contents.

Hrm, my bad. I must've been using another URL. With this one, it doesn't.
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-10-21 17:53:06 UTC
The URL you're quoting is the "Raw Unified Diff" output of Bugzilla. You may not assume this returns the same contents as the raw attachment.

The issue is known. At any rate, you should be using the standard attachment URL (reachable from the attachment display page via the "View" link).

*** This bug has been marked as a duplicate of bug 251286 ***