[Webkit-unassigned] [Bug 184490] Safari 11 does not send full HTTP request from multipart/form-data form

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 11 12:35:08 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=184490

Steve <steve at freedomsoft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steve at freedomsoft.com

--- Comment #1 from Steve <steve at freedomsoft.com> ---
Created attachment 337720

  --> https://bugs.webkit.org/attachment.cgi?id=337720&action=review

HTML test case demonstrating bug

I believe I've also experienced this issue. A little more information to help elaborate on this issue:

* We only see this issue when submitting a form with enctype="multipart/form-data" and using FormData to send data in the XMLHttpRequest object.
* The issue only arises when the file field is left empty. A selected file allows normal submission.
* Only happened after upgrading to macOS 10.13.4 and Safari 11.1

I've attached an HTML test case that recreates the error. The file contains the following 4 examples:
* Normal form submission, non-AJAX
* AJAX form submission with no file data
* AJAX form submission using FormData to submit file data
* XMLHttpRequest submission using FormData to submit file data.

Expected behavior:
For all forms to submit a valid request and receive response data. Response data would show up beneath each form, respectively.

Actual behavior:
* The non-AJAX form submits properly with or without a file selected and always returns a valid response
* The AJAX form that sends no file data submits properly and always returns a valid response
* The AJAX form using FormData to send file data creates a valid request when file data is selected. When no file is selected and the form is submitted the browser hangs and doesn't appear to send a valid request.
* The XMLHttpRequest form using FormData to send file data creates a valid request when file data is selected. When no file is selected and the form is submitted the browser hangs and doesn't appear to send a valid request

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180411/7be6f658/attachment-0002.html>


More information about the webkit-unassigned mailing list