AnsweredAssumed Answered

Construct Esri Portal with alwaysUseProxy = true

Question asked by straatvark on Jul 17, 2014

Hi

 

 

I have a scenario where I have the following JavaScript:  

esriConfig.defaults.io.alwaysUseProxy = true;
var myPortal = new esriPortal.Portal("http://www.arcgis.com");

 

Then, the Portal construction url is received by the proxy handler as:

     http%3a%2f%2fwww.arcgis.com%2fsharing%2frest%2faccounts%2fself%3fculture=en-za%3ff%3djson

And the decode form, retrieved with this:

string uri = context.Request.Url.Query.Substring(1);

Resolve uri to

"http://www.arcgis.com/sharing/rest/accounts/self?culture=en-za?f=json"

 

 

Which should be:

"http://www.arcgis.com/sharing/rest/accounts/self?culture=en-za&f=json"

 

 

For now I can work around it by don't set "alwaysUseProxy = true", and use "urlUtils.addProxyRule" instead., but is this a bug?

 

Regards, g

Outcomes