Opened 7 years ago

Last modified 4 years ago

#18639 new defect

dojo/request/iframe Submits Invalid Data

Reported by: Justin Doherty Owned by: Bryan Forbes
Priority: undecided Milestone: 1.14
Component: IO Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:


The dojo/request/iframe module submits invalid data and is inconsistent with the serialization of the data object compared to dojo/request/xhr.

It submits null values and empty arrays when it should not.


require(["dojo/request/xhr", "dojo/request/iframe"], function (xhr, iframe) {
    var data = {
        string: "",
        array: [],
        nul: null
    };"/", {
        data: data
    });"/", {
        data: data

If you inspect the post data for the you see:

  • string=
  • array=
  • nul=

but when you inspect for the you see:

  • string=

which is correct.

Change History (4)

comment:1 Changed 7 years ago by bill

Component: GeneralIO
Owner: set to Bryan Forbes

comment:2 Changed 6 years ago by dylan

Milestone: tbd1.11

comment:3 Changed 6 years ago by dylan

Milestone: 1.111.12

comment:4 Changed 4 years ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.