Opened 6 years ago
Last modified 4 years ago
#18249 new defect
dojo/request/iframe doesn't submit all post data
Reported by: | Justin Doherty | Owned by: | Bryan Forbes |
---|---|---|---|
Priority: | undecided | Milestone: | 1.15 |
Component: | IO | Version: | 1.10.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The request iframe.post hides some post data when data is specified in the options.data object.
The problem I encountered was if a parameter with the key "name" is specified in the options.data object it does not actually end up in the post data of the request.
In the example below, if you look at the post data from the request you will see that "otherparameter" submits but "name" doesn't.
require(["dojo/request/iframe"],function(iframe) { iframe.post("/url", { data: { name: "doesn't end up in post data", otherparameter: "ends up in post data" } }); }
I believe this is due to the name parameter being eaten by the following line: https://github.com/dojo/dojo/blob/1.10/request/iframe.js#L218 because the form's name was provided by the createForm method.
Change History (3)
comment:1 Changed 6 years ago by
Component: | General → IO |
---|---|
Owner: | set to Bryan Forbes |
comment:2 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|
comment:3 Changed 4 years ago by
Milestone: | 1.13 → 1.15 |
---|
Note: See
TracTickets for help on using
tickets.
Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.