Content-Length is wrong for multipart/form-data POST repeated request
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox-esr60 | --- | wontfix |
firefox60 | --- | wontfix |
firefox61 | --- | wontfix |
firefox62 | --- | verified |
People
(Reporter: cy6erGn0m, Assigned: baku)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(8 files, 42 obsolete files)
4.31 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
13.20 KB,
patch
|
Details | Diff | Splinter Review | |
19.13 KB,
patch
|
Details | Diff | Splinter Review | |
7.45 KB,
patch
|
Details | Diff | Splinter Review | |
16.08 KB,
patch
|
Details | Diff | Splinter Review | |
16.08 KB,
patch
|
Details | Diff | Splinter Review | |
25.52 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
80.88 KB,
patch
|
mayhemer
:
review+
|
Details | Diff | Splinter Review |
Updated•7 years ago
|
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Assignee | ||
Comment 9•7 years ago
|
||
Assignee | ||
Comment 10•7 years ago
|
||
Assignee | ||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Updated•7 years ago
|
Assignee | ||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
Assignee | ||
Comment 16•7 years ago
|
||
Assignee | ||
Comment 17•7 years ago
|
||
Assignee | ||
Comment 18•7 years ago
|
||
Assignee | ||
Comment 19•7 years ago
|
||
Assignee | ||
Comment 20•7 years ago
|
||
Assignee | ||
Comment 21•7 years ago
|
||
Assignee | ||
Comment 22•7 years ago
|
||
Assignee | ||
Comment 23•7 years ago
|
||
Comment 24•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Assignee | ||
Comment 26•7 years ago
|
||
Comment 27•7 years ago
|
||
Assignee | ||
Comment 28•7 years ago
|
||
Comment 29•7 years ago
|
||
Assignee | ||
Comment 30•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Comment 31•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 32•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 33•7 years ago
|
||
Assignee | ||
Comment 34•7 years ago
|
||
Assignee | ||
Comment 35•7 years ago
|
||
Assignee | ||
Comment 36•7 years ago
|
||
Assignee | ||
Comment 37•7 years ago
|
||
Assignee | ||
Comment 38•7 years ago
|
||
Assignee | ||
Comment 39•7 years ago
|
||
Assignee | ||
Comment 40•7 years ago
|
||
Assignee | ||
Comment 41•7 years ago
|
||
Assignee | ||
Comment 42•7 years ago
|
||
Comment 43•7 years ago
|
||
Comment 44•7 years ago
|
||
Comment 45•7 years ago
|
||
Comment 46•7 years ago
|
||
Comment 47•7 years ago
|
||
Comment 48•7 years ago
|
||
Comment 49•7 years ago
|
||
Comment 50•7 years ago
|
||
Comment 51•7 years ago
|
||
Comment 52•7 years ago
|
||
Comment 53•7 years ago
|
||
Comment 54•7 years ago
|
||
Assignee | ||
Comment 55•7 years ago
|
||
Assignee | ||
Comment 56•7 years ago
|
||
Comment 57•7 years ago
|
||
Assignee | ||
Comment 58•7 years ago
|
||
Assignee | ||
Comment 59•7 years ago
|
||
Comment 60•7 years ago
|
||
Comment 61•7 years ago
|
||
Comment 62•7 years ago
|
||
Assignee | ||
Comment 63•7 years ago
|
||
Assignee | ||
Comment 64•7 years ago
|
||
Assignee | ||
Comment 65•7 years ago
|
||
Assignee | ||
Comment 66•7 years ago
|
||
Assignee | ||
Comment 67•7 years ago
|
||
Assignee | ||
Comment 68•7 years ago
|
||
Assignee | ||
Comment 69•7 years ago
|
||
Assignee | ||
Comment 70•7 years ago
|
||
Assignee | ||
Comment 71•7 years ago
|
||
Assignee | ||
Comment 72•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 74•7 years ago
|
||
Comment 75•7 years ago
|
||
Comment 76•7 years ago
|
||
Comment 77•7 years ago
|
||
Updated•7 years ago
|
Assignee | ||
Comment 78•7 years ago
|
||
Assignee | ||
Comment 79•7 years ago
|
||
Assignee | ||
Comment 80•7 years ago
|
||
Assignee | ||
Comment 81•7 years ago
|
||
Comment 82•7 years ago
|
||
Comment 83•7 years ago
|
||
Assignee | ||
Comment 84•7 years ago
|
||
Comment 85•7 years ago
|
||
Comment 86•7 years ago
|
||
Comment 87•7 years ago
|
||
Assignee | ||
Comment 88•7 years ago
|
||
Comment 89•7 years ago
|
||
Comment 90•7 years ago
|
||
Comment 91•7 years ago
|
||
Assignee | ||
Comment 92•7 years ago
|
||
Comment 93•7 years ago
|
||
Updated•7 years ago
|
Assignee | ||
Comment 95•7 years ago
|
||
Assignee | ||
Comment 96•7 years ago
|
||
Assignee | ||
Comment 97•7 years ago
|
||
Assignee | ||
Comment 98•7 years ago
|
||
Assignee | ||
Comment 99•7 years ago
|
||
Assignee | ||
Comment 100•7 years ago
|
||
Assignee | ||
Comment 101•7 years ago
|
||
Assignee | ||
Comment 102•7 years ago
|
||
Comment 103•7 years ago
|
||
Comment 104•7 years ago
|
||
Comment 105•7 years ago
|
||
Assignee | ||
Comment 106•7 years ago
|
||
Assignee | ||
Comment 107•7 years ago
|
||
Assignee | ||
Comment 108•7 years ago
|
||
Comment 109•7 years ago
|
||
Comment 111•7 years ago
|
||
Assignee | ||
Comment 112•7 years ago
|
||
Comment 113•7 years ago
|
||
Assignee | ||
Comment 115•7 years ago
|
||
Comment 116•7 years ago
|
||
Comment 117•7 years ago
|
||
Comment 118•7 years ago
|
||
Comment 119•7 years ago
|
||
bugherder |
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 120•7 years ago
|
||
Comment 121•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 123•4 years ago
|
||
Stopping by with the following observation in Firefox 79. I was first thinking it could be a regression but then failed to confirm.
Form defined as <form method="post" action="/~amk/8smer" enctype="multipart/form-data">
with no file upload, when submitted using Submit button sends proper header to the web server:
POST /~amk/8smer HTTP/1.1
Host: ver
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: multipart/form-data; boundary=---------------------------256117336139382807803966776657
Content-Length: 705
Origin: http://ver
Connection: keep-alive
Referer: http://ver/~amk/8smer
Cookie: __utma=242530053.219340367.1559423829.1559423829.1559435217.2
Upgrade-Insecure-Requests: 1
Refresh of the resulting page requests permission to repost data, but ends up with Bad Request. The http packet is lacking Content-Length as well as Content-Type and HTTP header is not terminated either:
POST /~amk/8smer HTTP/1.1
Host: ver
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://ver/~amk/8smer
Origin: http://ver
Connection: keep-alive
Cookie: __utma=242530053.219340367.1559423829.1559423829.1559435217.2
Upgrade-Insecure-Requests: 1
Cache-Control: max-age=0
-----------------------------30002942952810996801798892234
Content-Disposition: form-data; name="grid"
NORKA... etc (actual form data)
I am not sure whether to reopen this bug or report a new one. A problem is that I cannot reproduce this consistently.
Issue did not happen when I started to develop the script. Probably started after playing with the object inspector, not sure.
It does not happen in a newly created profile so I do not have sufficient data to submit a new bug. Yet I wanted to leave some trace
in bugzilla in case someone else finds this bug like I did today.
Comment 124•4 years ago
|
||
I have witnessed the same issue. Yesterday I spent hours trying to figure out why I was getting a bad request, although it was inconsistent at first. In the end I was able to reproduce the issue by submitting a form that contained an md5 hash value for a particular field (proprietary session tracking) and this particular value consistently causes a bad request upon form re-submission. As the previous submission noted, the http request is missing content-length among others. The request is clearly bad. In fact, if a person uses the option to edit and resend, the request has the proper headers. This appears to be a bug. I can't reproduce the same problem with Chrome using the same set of data.
Comment 125•4 years ago
|
||
(In reply to mmkwall from comment #124)
I have witnessed the same issue. Yesterday I spent hours trying to figure out why I was getting a bad request, although it was inconsistent at first. In the end I was able to reproduce the issue by ... This appears to be a bug. I can't reproduce the same problem with Chrome using the same set of data.
Thanks for the supportive comment. I did not happen to identify the trigger. If you have reproduction steps, I'd suggest to raise a new bug.
Description
•