Opened 4 years ago

Last modified 2 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:

Description

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.

Example:

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

If you inspect the post data for the iframe.post you see:

  • string=
  • array=
  • nul=

but when you inspect for the xhr.post you see:

  • string=

which is correct.

Change History (4)

comment:1 Changed 4 years ago by bill

Component: GeneralIO
Owner: set to Bryan Forbes

comment:2 Changed 4 years ago by dylan

Milestone: tbd1.11

comment:3 Changed 4 years ago by dylan

Milestone: 1.111.12

comment:4 Changed 2 years ago by dylan

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