URL encoding for makeRequest HTTP GET requests not preserved
------------------------------------------------------------

                 Key: SHINDIG-928
                 URL: https://issues.apache.org/jira/browse/SHINDIG-928
             Project: Shindig
          Issue Type: Bug
          Components: PHP
    Affects Versions: trunk
         Environment: Firefox 3.0.6, MAMP 1.7.1
            Reporter: Brent Theisen


I'm calling makeRequest like so...

var params = { };
params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON;
params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.GET;

gadgets.io.makeRequest(
    
"http://local.api.madison.com/article/v1/search.json?tags=Local+News&limit=5&hasImages=1";,
 function(response) {
      // Omitted
    }, params);


The callback never gets invoked and I traced the JS to an error in io.js line 
122 (rev 739404) that does, "data = data[url];".  The reason for the error is 
that the "+" in the URL has been decoded up on the server side to just a space 
and never got re-encoded.  Also, when the server side shindig code attempts to 
proxy the request with curl it uses a space instead of a + so the URL more or 
less gets truncated.

I know this was working late last week so it might have been a recently 
introduced bug in the trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to