Closed
Bug 723805
Opened 13 years ago
Closed 7 years ago
XMLHttpRequest sends "OST", instead of "POST", when send() is a File.
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: tim, Unassigned)
References
()
Details
Summary: When a XmlHttpRequest is open()'ed using the method POST, and the xhr.send() method is sending a DOM "File" object, the server receives "OST" as a method, causing a Status 501.
Steps to reproduce:
1. visit my website (www.wipnation.com) and sign up(or log in if already signed up)
2. back on the main page (/ or /index.jsp), click on +Post Art, which is near the top middle of the webpage
3. on the resulting page, press 'Browse..."
4. pick a JPEG or PNG file from your disk.
5. press "Open"
Results: my Tomcat 6 server reports Status 501 error code (visible in logs/firebug output)
I'll try to make a file upload test page that won't require a login within 48 hours.
Log attached, see lines 73812(POST) and 74042 (Status 501)
Does not happen on other browsers, or FF9.
Cannot confirm other OSes.
My site has not had code changed on it for about 3 weeks. This bit of code has been working since FF 3.6/4 (July 2011)
Reporter | ||
Comment 1•13 years ago
|
||
Apparently, attachments won't work in ff10 on bugzilla. :/ Trying chrome.
Reporter | ||
Comment 2•13 years ago
|
||
Updated•13 years ago
|
Component: General → DOM: Mozilla Extensions
Product: Firefox → Core
QA Contact: general → general
Attachment #594055 -
Attachment mime type: text/plain → application/jar
Comment 3•13 years ago
|
||
Hmm. This is an https URI, right? This may be an instance of bug 702111. Can you check whether setting NSS_SSL_CBC_RANDOM_IV=0 in your environment fixes the problem for you?
Comment 4•13 years ago
|
||
Though if that were the case then recent enough Chrome builds would have the same problem...
Comment 5•13 years ago
|
||
I verified it is caused by the 1/(n-1) record splitting.
I remember that Adam Langley said that Chrome would soon switch to doing record splitting more like Firefox, but the problem doesn't occur in Chrome release or Chrome Canary.
Comment 6•13 years ago
|
||
So we certainly do record splitting since Chrome 16, but there are some differences with POSTS.
In 16 we'll send a split record (so, 2 records) for the headers and another packet with a split record for the body.
In 17+ we'll merge the body into the headers if the sum is < 1400 bytes and so there'll be only a single packet with two records. I believe that's Firefox's behaviour today.
Updated•13 years ago
|
Attachment #594055 -
Attachment is private: true
Comment 7•13 years ago
|
||
(And, to be clear, the splits are 1 byte and the rest of the bytes, same as FF10.)
Assignee | ||
Updated•12 years ago
|
Component: DOM: Mozilla Extensions → DOM
Updated•7 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•