Hi,

i also use this test:

http://opensocial-resources.googlecode.com/svn/tests/trunk/compliancetests.xml
If there is a '!' in front of the empty() in the first else if statement,
the "fetch people"(P2) fails. (it is not shown at all)

I am quite sure that i had a error message about it yesterday, i am however
not able to reproduce this error message today :(

Best Regards

karsten beyer

On Thu, Jun 19, 2008 at 8:27 PM, bruno rovagnati (JIRA) <[EMAIL PROTECTED]>
wrote:

>
>    [
> https://issues.apache.org/jira/browse/SHINDIG-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606493#action_12606493]
>
> bruno rovagnati commented on SHINDIG-392:
> -----------------------------------------
>
> Hi Karsten
>
> can u please send some js examples to see how u do a call?
>
> for example
>            var idSpec = new opensocial.IdSpec();
>            idSpec.setField('USER_ID', [friend]);
>            opensocial.requestSendMessage(idSpec, message, function(){});
> creates this JSON
>    Request [..."idSpec":{"fields_":{"USER_ID":["177001"]}},..]
> and this php
> idspec: Array\n(\n    [fields_] => Array\n        (\n            [USER_ID]
> => Array\n                (\n                    [0] =>
> 177001\n                )\n\n        )\n\n)\n
>
> as far as i see, not good.
>
> this call
>            opensocial.requestSendMessage({'USER_ID' : [friend]}, message,
> function(){});
> creates this Json
>    [... "idSpec":{"USER_ID":["177001"]},...]
> and this php
>   idspec: Array\n(\n    [USER_ID] => Array\n        (\n            [0] =>
> 177001\n        )\n\n)\n
>
> looks a little bit better.
>
> and finally the code is now working for the case:
>
>            opensocial.requestSendMessage([friend], message, function(){});
> json:
>   [...,"idSpec":["177001"],...]
> php
> idspec: Array\n(\n    [0] => 177001\n)\n
>
> ropu
>
> ps: i just checked
>
> http://opensocial-resources.googlecode.com/svn/tests/trunk/compliancetests.xmlwith
> actual SVN code an and 11/11 went ok.
>
>
>
>
>
> On Thu, Jun 19, 2008 at 1:17 AM, Karsten Beyer (JIRA) <[EMAIL PROTECTED]>
>
>
>
> --
> .-. --- .--. ..-
> R o p u
>
>
> > bug in idSpec.php that doesnt allow array() of user ids
> > -------------------------------------------------------
> >
> >                 Key: SHINDIG-392
> >                 URL: https://issues.apache.org/jira/browse/SHINDIG-392
> >             Project: Shindig
> >          Issue Type: Bug
> >          Components: Common Components (PHP)
> >            Reporter: bruno rovagnati
> >            Assignee: Chris Chabot
> >         Attachments: idSpec_USER_ID.patch
> >
> >
> > if an array of id (or a single id) is sent for a IdSpec, php will
> rejected as invalid
> > ps: this applies to JSON wired stuff
>
> --
> 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