Closed
Bug 445104
Opened 17 years ago
Closed 16 years ago
ssl redirects come with a 200 OK HTTP code on mod_perl
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.2
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file)
795 bytes,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
Today I logged into my "ssl: authenticated sessions" mod_perl tip installation, and I got a 200 OK with a redirect message, instead of a 302. This looks like a regression from the recent ssl-redirect fix.
Flags: blocking3.2+
Assignee | ||
Comment 1•17 years ago
|
||
I can only reproduce this under mod_perl--that might indicate a bug in CGI.pm.
Summary: ssl redirects come with a 200 OK HTTP code → ssl redirects come with a 200 OK HTTP code on mod_perl
Assignee | ||
Comment 2•17 years ago
|
||
Okay, this fixes it. The problem is under mod_perl, CGI.pm sends headers by calling a method on the mod_perl Request object. That *queues* headers to be sent. But then when we print a newline, that forces the *default* headers to be sent immediately, which are of course 200 OK headers (it was also pretty suspicious since they had an ISO-8859-1 charset instead of a UTF-8 one).
Assignee | ||
Updated•17 years ago
|
Attachment #330128 -
Attachment is patch: true
Attachment #330128 -
Attachment mime type: application/octet-stream → text/plain
Comment 3•17 years ago
|
||
Comment on attachment 330128 [details] [diff] [review]
v1
Tested on our devel system and works as expect.
r=dkl
Attachment #330128 -
Flags: review?(dkl) → review+
Assignee | ||
Updated•17 years ago
|
Flags: approval3.2+
Flags: approval+
Comment 4•17 years ago
|
||
Please check in this patch. :)
Assignee | ||
Comment 5•17 years ago
|
||
tip:
Checking in Bugzilla/CGI.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/CGI.pm,v <-- CGI.pm
new revision: 1.38; previous revision: 1.37
done
3.2 branch:
Checking in Bugzilla/CGI.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/CGI.pm,v <-- CGI.pm
new revision: 1.36.2.2; previous revision: 1.36.2.1
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 6•17 years ago
|
||
Had to back out this patch in addition to the main SSL redirect patch as was causing regression. For more details please see bug 428659.
Comment 7•16 years ago
|
||
Fixed for this was checked in with the patch in bug 428659. Closing.
Dave
Status: REOPENED → RESOLVED
Closed: 17 years ago → 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•