Opened 15 years ago

Closed 15 years ago

#3534 closed defect (fixed)

0.9: Dojo support for PUT filtering of URL parameters (dojo.xhrPut())

Reported by: guest Owned by: James Burke
Priority: high Milestone: 0.9beta
Component: IO Version: 0.9
Keywords: Cc:
Blocked By: Blocking:


Say URL = http://localhost:8081/doit?Z%2524db=db1&Z%2524user=johngalt If I pass URL to dojo.xhr{Get,Delete}, the URL is passed to the server "as is". If I pass URL to dojo.xhrPut, the URL is truncated and xhr transmits only "http://localhost:8081/doit" as the URL.

I realize that PUT is supposed to pass its content separately from the "url" property of the xhrPut(args), but contend that the client's URL should be respected and left unmodified.



Change History (3)

comment:1 Changed 15 years ago by Jared Jurkiewicz

Component: GeneralIO
Owner: changed from anonymous to alex


Looks like a behavior problem with xhrPut not preserving any query params...

comment:2 Changed 15 years ago by James Burke

Milestone: 0.9beta
Owner: changed from alex to James Burke
Status: newassigned

I'll take a look since I'm already looking at xhr code.

comment:3 Changed 15 years ago by James Burke

Resolution: fixed
Status: assignedclosed

(In [9401]) Fixes #3534. args.url query params are not added to the list of params inside of dojo._ioSetArgs, but query params discovered as a result of dojo._ioSetArgs can be added to the querystring for qualifying http methods. The result is that the input args.url is preserved with its querystring params.

Note: See TracTickets for help on using tickets.