[ 
https://issues.apache.org/jira/browse/SHINDIG-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pan Jie updated SHINDIG-1054:
-----------------------------

    Attachment: 20090511.patch

Here are what I did in this patch:
1. fixed RestRequestItem::parseQuery, urldecode for each query value.
2. removed parseQuery calling from RestRequestItem->applyUrlTemplate, instead, 
parseQuery in RestRequestItem->createWithRequest if necessary
3. added a unittest to reproduce this issue
4. added 'src/gadgets/render', 'src/gadgets/rewrite' to __autoload path

> cannot applying multiple fields in restful api with oauth arguments
> -------------------------------------------------------------------
>
>                 Key: SHINDIG-1054
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1054
>             Project: Shindig
>          Issue Type: Bug
>          Components: PHP
>    Affects Versions: trunk
>            Reporter: Pan Jie
>            Priority: Minor
>             Fix For: trunk
>
>         Attachments: 20090511.patch
>
>
> Assuming i want to fetch such a url: 
> http://shindig/social/rest/people/1/@self?fields=gender,name
> After oauth signing, url will be:
> http://shindig/social/rest/people/1/@self?oauth_nonce=e8ee41728d2d062063f6ba6eaa98dda6&oauth_timestamp=1241666501&oauth_consumer_key=d3d9cee5-fef5-cee6-a1f2-f1e5f3e8c0fa&fields=gender%2Cname&oauth_signature_method=HMAC-SHA1&oauth_signature=EN1GhZ81dgAEJVauLJfRHFNdfJE%3D&;
> So parameter "fields=gender,name" will be encoded to "fields=gender%2Cname" 
> which lead to a bug.

-- 
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