You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Chris Chabot <ch...@google.com> on 2008/09/23 11:45:15 UTC

Container test suite test APP001, fields (*) not working

Hey guys, i ran into this glitch while working on the php json-rpc
implementation:

APP001: opensocial.DataRequest.newFetchPersonAppDataRequest(['someId'],
'*'): failed

When i look @ it's request in firebug i see:
[{"method":"appdata.get","params":{"userId":["1"],"groupId":"@self","appId":"@app","fields":[]},"id":"fetchWithIds"}]

In other words, the fields param doesn't seem to end up on the server
in this case?

Anyone ran into / looked at this before?

  -- Chris

Re: Container test suite test APP001, fields (*) not working

Posted by Chris Chabot <ch...@google.com>.
Ah right thanks for clearing that up, indeed in the code it checks for
fields or '*' and not empty = all, easy fix after all, thanks!

On Tue, Sep 23, 2008 at 5:10 PM, Cassie <do...@apache.org> wrote:

> When someone fetches app data with the fields set to * in javascript, we
> translate that to not setting any fields in the restful call. When the
> fields parameter is empty or not present the restful server should return
> back all fields.
>
> Maybe the server you are using isn't translating empty fields to mean all
> fields?
>
> - Cassie
>
>
> On Tue, Sep 23, 2008 at 2:45 AM, Chris Chabot <ch...@google.com> wrote:
>
> > Hey guys, i ran into this glitch while working on the php json-rpc
> > implementation:
> >
> > APP001: opensocial.DataRequest.newFetchPersonAppDataRequest(['someId'],
> > '*'): failed
> >
> > When i look @ it's request in firebug i see:
> >
> >
> [{"method":"appdata.get","params":{"userId":["1"],"groupId":"@self","appId":"@app","fields":[]},"id":"fetchWithIds"}]
> >
> > In other words, the fields param doesn't seem to end up on the server
> > in this case?
> >
> > Anyone ran into / looked at this before?
> >
> >  -- Chris
> >
>

Re: Container test suite test APP001, fields (*) not working

Posted by Cassie <do...@apache.org>.
When someone fetches app data with the fields set to * in javascript, we
translate that to not setting any fields in the restful call. When the
fields parameter is empty or not present the restful server should return
back all fields.

Maybe the server you are using isn't translating empty fields to mean all
fields?

- Cassie


On Tue, Sep 23, 2008 at 2:45 AM, Chris Chabot <ch...@google.com> wrote:

> Hey guys, i ran into this glitch while working on the php json-rpc
> implementation:
>
> APP001: opensocial.DataRequest.newFetchPersonAppDataRequest(['someId'],
> '*'): failed
>
> When i look @ it's request in firebug i see:
>
> [{"method":"appdata.get","params":{"userId":["1"],"groupId":"@self","appId":"@app","fields":[]},"id":"fetchWithIds"}]
>
> In other words, the fields param doesn't seem to end up on the server
> in this case?
>
> Anyone ran into / looked at this before?
>
>  -- Chris
>