Ajax with FormData API will send corrupted request body if the last input is checkable and is not checked.

Fixed Issue #101676

Details

Created
Apr 27, 2014
Privacy
This issue is public.
Found in build #
0.0010
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL = http://jsbin.com/muqem/latest

REPRO STEPS:

  1. Open http://jsbin.com/muqem/latest
  2. Leave the last checkbox unchecked, and click "Sign Up".

See result in http://requestb.in/10voz8j1?inspect

If the checkbox is checked, then the request body is formed correctly, and the result page on requestb.in can parse the parameters correctly.

EXPECTED RESULTS:
The request body is formed correctly like this:

-----------------------------7de1ff2c16019e
Content-Disposition: form-data; name="user[username]"

johnappleseed
-----------------------------7de1ff2c16019e
Content-Disposition: form-data; name="user[password]"

s3cr37
-----------------------------7de1ff2c16019e
Content-Disposition: form-data; name="user[password_confirmation]"

s3cr37
-----------------------------7de1ff2c16019e–

ACTUAL RESULTS:
The request body is corrupted. The last part is incomplete.

-----------------------------7de3cc2216019e
Content-Disposition: form-data; name="user[username]"

johnappleseed
-----------------------------7de3cc2216019e
Content-Disposition: form-data; name="user[password]"

s3cr37
-----------------------------7de3cc2216019e
Content-Disposition: form-data; name="user[password_confirmation]"

s3cr37
-----------------------------7de3cc2216019e
Content-Disposition: form-data; name="
-----------------------------7de3cc2216019e–

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “IPBS P.”

      Changed Assigned To from “IPBS P.” to “Bruce M.”

      Changed Assigned To to “Matt K.”

      Changed Status to “Confirmed”

      Changed Title from “Ajax with FormData API will send corrupted request body if the last input is checkable and is not checked.” to “Ajax with FormData API will send corrupted request body if the last input is checkable and is not checked.”

      Changed Assigned To from “Matt K.” to “Brandon M.”

      Changed Assigned To from “Brandon M.” to “IPBS P.”

      Changed Status from “Confirmed” to “Fixed”

      Changed Assigned To from “IPBS P.” to “Venkat K.”

      Changed Steps to Reproduce

    You need to sign in to your Microsoft account to add a comment.

    Sign in