Setting 'groupId' = 'SELF' results in invalid RPC and RESTful requests
----------------------------------------------------------------------

                 Key: SHINDIG-533
                 URL: https://issues.apache.org/jira/browse/SHINDIG-533
             Project: Shindig
          Issue Type: Bug
          Components: Features (Javascript)
            Reporter: Arne Roomann-Kurrik
            Priority: Minor


Requests such as the following:

var idspec = opensocial.newIdSpec({ "userId" : "OWNER", "groupId" : "SELF" });
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonAppDataRequest(idspec, "myKey"), "get_data");
req.send();

result in the following rpc or restful requests:

{"get_data":{"url":"/appdata/@owner/SELF/@app?fields=myKey","method":"GET"}}
[{"method":"appdata.get","params":{"userId":"@owner","groupId":"SELF","app":"@app","fields":["myKey"]},"id":"get_data"}]

This is incorrect, because SELF should be considered a valid groupId, not a 
group name.

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