File upload through XHR POST ajax failed under SSL connection after FF36




4 years ago
3 years ago


(Reporter: johnchan713, Unassigned)


36 Branch
Windows 7

Firefox Tracking Flags

(Not tracked)




4 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36

Steps to reproduce:

I do not have the exact codes here.
1. Create a form with input tag type "files", e.g. JSP files 
2. Inside a javascript file, use ajax call to perform file uploading file using multipart/form-data with POST method, with specifying success callback function.
3. Run the ajax on SSL protected web server.
4. upload a non-text file larger than 50kB and wait for response

Actual results:

1. The firefox do not receive 200OK response for XHR, and the upload process stopped
2. The success callback function is not working on FF36 and FF37 (as I tested), but work on Chrome and FF35 and previous versions.
3. The bug appear for certain file size, for smaller files, the success callback runs successfully.
4. For domain not using SSL, there are no problem at all.

Expected results:

I expect the upload will return 200OK in the Firefox.

Comment 1

4 years ago
It would be nice to provide a self-contained testcase working online.
Flags: needinfo?(johnchan713)
Keywords: testcase-wanted

Comment 2

4 years ago
Oh I surfed in Bugzilla and I found a bug that might be the cause.

Bug 833774 - The displayed HTTPS response status comes from proxy, not from web server

Since in the debugger of Firefox when problem happens, it shows "200 Connection established", 
but when I use Fidder to capture the traffic using HTTPS tunnel (or proxy), it returned 200OK and I can upload the file.
Flags: needinfo?(johnchan713)

Comment 3

4 years ago
I found another related bug

Bug 1139479 - SSL Error during file upload by POST in HTTPS

I have tested the filesize limits is exactly 7557 characters, or 7KB.

Comment 4

4 years ago
As you're able to reproduce it, could you download and run the tool mozregression to find a possible regression range, please.
See for details about istall and usage.

If it worked in FF36, run "mozregression --good-release 36" and copy here the pushlog (no need to bisect more).
Flags: needinfo?(johnchan713)
Keywords: regressionwindow-wanted
No testcase and the needinfo? request has gone 6 months without response. I'm going to close this out as incomplete.

John, if you can still reproduce this issue and want to take another stab at moving it forward, feel free to needinfo? me and we can do so.
Last Resolved: 3 years ago
Flags: needinfo?(johnchan713)
Keywords: regressionwindow-wanted
Resolution: --- → INCOMPLETE
Keywords: testcase-wanted
You need to log in before you can comment on or make changes to this bug.