Closed Bug 575097 Opened 14 years ago Closed 14 years ago

New STS header in Bugzilla::CGI causes malformed header error due to lack of Content-Type naming

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

defect
Not set
blocker

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: LpSolit, Assigned: reed)

References

Details

(Keywords: regression)

Attachments

(1 file)

I cannot display any bug. landfill displays the source code, and my local installation simply crashes with:

malformed header from script. Bad header=Text/html: show_bug.cgi

mkanat suspects this is due to the STS bug.
OK, it's definitely a regression due to the STS bug. Backing out the patch fixes the problem (which I'm going to do if this bug is not fixed quickly).
Depends on: 562475
Summary: Cannot display bugs (STS problem?) → The strict-transport-security implementation prevents bugs from being displayed
From `perldoc CGI`:
       Several routines are commonly called with just one argument.  In the case of these routines you can provide the
       single argument without an argument name.  header() happens to be one of these routines.  In this case, the
       single argument is the document type.

          print $q->header('text/html');
Summary: The strict-transport-security implementation prevents bugs from being displayed → New STS header in Bugzilla::CGI causes malformed header error due to lack of Content-Type naming
Attached patch patch - v1Splinter Review
Always give the Content-Type header a name, not just in the case of cookies existing.
Assignee: create-and-change → reed
Status: NEW → ASSIGNED
Attachment #454376 - Flags: review?(LpSolit)
Attachment #454376 - Flags: review?(LpSolit) → review+
Comment on attachment 454376 [details] [diff] [review]
patch - v1

This fixes the problem. r=LpSolit
Flags: approval+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/CGI.pm
Committed revision 7254.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: