PDA

View Full Version : Ajax Proxy - encode extraParams?



alexander.urban
16 Dec 2013, 1:15 AM
Consider the following:


var params = Ext.urlDecode(window.location.search);
var store = Ext.getStore("EntryStore");
store.getProxy().extraParams={'mail':params.mail,'id':params.id};
store.load();

when called with
localhost/mypage/?mail=test@mydomain.com&id=QWERTYUIOP/ASDFGHJKL456+yxcvbnm==
queries
localhost/api/?_dc=1387181002249&mail=test@mydomain.com&id=QWERTYUIOP/ASDFGHJKL456+yxcvbnm==&page=1&start=0&limit=25
which contains the reserved character "+", which makes the backend choke on that parameter.

Is this "+" sign
(a) a bug in sencha
(b) working as intended, and I should read the manual on how to encode my params (please provide a link, I don't find)
(c) an error on the Microsoft side?

Kind regards,

Alexander

scottmartin
17 Dec 2013, 5:53 AM
What is the value of params.id? Where does '+yxcvbnm==' come from?