Closed
Bug 119625
Opened 23 years ago
Closed 23 years ago
Can't enter new bug or post comments (POSTs turn into GETs)
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
mozilla0.9.8
People
(Reporter: ian, Assigned: darin.moz)
References
Details
(Keywords: smoketest)
Attachments
(1 file, 1 obsolete file)
|
876 bytes,
patch
|
bbaetz
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
With a CVS tip build, I cannot post new bugs or comment on new bugs. On
IRC choess reports that this is because POSTs are being turned into GETs
with no arguments:
<choess> what I see:
<choess> "GET /cgi-bin/buildchron.cgi HTTP/1.1" 200 2688
<choess> "Content-type: application/x-www-form-urlencoded" 400 -
<choess> what I should see:
<choess> "POST /cgi-bin/buildchron.cgi HTTP/1.1" 200 774
See http://www.mozilla.gr.jp:4321/ for a debug server for this.
saw what's probably the same with a cvs build including checkins through
01/11/2002 15:02 ("bonsai time")
Trying to post comments in bugzilla only returns:
"Error
you did no select any bugs to modify"
backing out the checkins for bug 112479 fixes this:
cvs update -j1.19 -j1.18 mozilla/netwerk/protocol/http/src/nsHttpTransaction.h
cvs update -j1.41 -j1.40 mozilla/netwerk/protocol/http/src/nsHttpTransaction.cpp
cvs update -j1.14 -j1.13 mozilla/netwerk/protocol/http/src/nsHttpResponseHead.h
cvs update -j1.19 -j1.18 mozilla/netwerk/protocol/http/src/nsHttpChannel.h
cvs update -j1.78 -j1.77 mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp
CC darin
->darin
Assignee: alexsavulov → darin
Keywords: nsdogfood
Comment 4•23 years ago
|
||
From bug 112479:
"------- Additional Comment #9 From Christophe Fergeau 2002-01-12 12:38 -------
In nsHttpChannel::SetUploadStream, it seems that the line
mUploadStream = stream;
should be at the beginning at the function, not at the end.
The old code was first initialising mUploadStream, and bug #119625 doesn't seem
to occur with that line moved.
I don't understand this code at all, so I'm sorry if I'm telling stupid things :)
"
Looking at the code, this is indeed correct - else mUploadStream (which is an
nsCOMPtr, and so is inited to null), and so we always send a GET.
I'll test this, then attach a patch
Comment 5•23 years ago
|
||
Yeah, that fixes it. I still get:
###!!! ASSERTION: NS_ENSURE_TRUE((NS_SUCCEEDED(result) && !stateKey.IsEmpty()))
failed: '((!((result) & 0x80000000)) && !stateKey.IsEmpty())', file
/home/bbaetz/src/mozilla/content/html/content/src/nsGenericHTMLElement.cpp, line
2833
###!!! Break: at file
/home/bbaetz/src/mozilla/content/html/content/src/nsGenericHTMLElement.cpp, line
2833
Was this happening before? I haven't run CVS for a few weeks.
Comment 6•23 years ago
|
||
Patch by christophe.fergeau@laposte.net
Comment 7•23 years ago
|
||
Comment on attachment 64689 [details] [diff] [review]
patch
r=bbaetz
Attachment #64689 -
Flags: review+
Comment 8•23 years ago
|
||
Attachment #64689 -
Flags: superreview+
Comment 9•23 years ago
|
||
Checked in, thanks
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 10•23 years ago
|
||
*** Bug 119742 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 11•23 years ago
|
||
thanks for fixing this bug in my checkin. i meant to assign mUploadStream at
the end of the function because in the error case, the state of the http channel
should not change. the problem with my checkin was that the first if () block
should have been checking if (stream), and not if (mUploadStream). my bad for
not running this through the usual tests :-(
i'm reopening this in order to attach the intended patch.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 12•23 years ago
|
||
Attachment #64689 -
Attachment is obsolete: true
| Assignee | ||
Updated•23 years ago
|
Severity: blocker → major
Priority: -- → P3
Target Milestone: --- → mozilla0.9.8
Comment 13•23 years ago
|
||
Comment on attachment 64877 [details] [diff] [review]
patch - what was originally intended
fair enough. r=bbaetz
Attachment #64877 -
Flags: review+
Comment 14•23 years ago
|
||
Comment on attachment 64877 [details] [diff] [review]
patch - what was originally intended
sr=alecf
Attachment #64877 -
Flags: superreview+
| Assignee | ||
Comment 15•23 years ago
|
||
fixed-on-trunk
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Comment 16•23 years ago
|
||
*** Bug 120002 has been marked as a duplicate of this bug. ***
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•