You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "impetus technologies (JIRA)" <ji...@apache.org> on 2008/09/15 14:05:44 UTC
[jira] Created: (SHINDIG-600) Sample Container is not working with
PHP shindig
Sample Container is not working with PHP shindig
------------------------------------------------
Key: SHINDIG-600
URL: https://issues.apache.org/jira/browse/SHINDIG-600
Project: Shindig
Issue Type: Bug
Environment: Windows
Reporter: impetus technologies
Sample Container is not working with PHP shindig. It is throwing javascript error "serverJson is undefined" while displaying gadgets.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SHINDIG-600) Sample Container is not working with
PHP shindig
Posted by "Chris Chabot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Chabot updated SHINDIG-600:
---------------------------------
Component/s: RESTful API (PHP)
Assignee: Chris Chabot
filed under the proper component
> Sample Container is not working with PHP shindig
> ------------------------------------------------
>
> Key: SHINDIG-600
> URL: https://issues.apache.org/jira/browse/SHINDIG-600
> Project: Shindig
> Issue Type: Bug
> Components: RESTful API (PHP)
> Environment: Windows
> Reporter: impetus technologies
> Assignee: Chris Chabot
>
> Sample Container is not working with PHP shindig. It is throwing javascript error "serverJson is undefined" while displaying gadgets.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SHINDIG-600) Sample Container is not working with
PHP shindig
Posted by "Chris Chabot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Chabot resolved SHINDIG-600.
----------------------------------
Resolution: Fixed
Verified, sample container is working great again, nice work ;)
If anyone see's a failed post to /gadgets/metadata when trying this, set:
; Always populate the $HTTP_RAW_POST_DATA variable.
always_populate_raw_post_data = On
in your php.ini for the samplecontainer to work
> Sample Container is not working with PHP shindig
> ------------------------------------------------
>
> Key: SHINDIG-600
> URL: https://issues.apache.org/jira/browse/SHINDIG-600
> Project: Shindig
> Issue Type: Bug
> Components: RESTful API (PHP)
> Environment: Windows
> Reporter: impetus technologies
> Assignee: Chris Chabot
>
> Sample Container is not working with PHP shindig. It is throwing javascript error "serverJson is undefined" while displaying gadgets.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SHINDIG-600) Sample Container is not working
with PHP shindig
Posted by "impetus technologies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639827#action_12639827 ]
impetus technologies commented on SHINDIG-600:
----------------------------------------------
I think this issue can be closed as sample container is working now.
> Sample Container is not working with PHP shindig
> ------------------------------------------------
>
> Key: SHINDIG-600
> URL: https://issues.apache.org/jira/browse/SHINDIG-600
> Project: Shindig
> Issue Type: Bug
> Components: RESTful API (PHP)
> Environment: Windows
> Reporter: impetus technologies
> Assignee: Chris Chabot
>
> Sample Container is not working with PHP shindig. It is throwing javascript error "serverJson is undefined" while displaying gadgets.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SHINDIG-600) Sample Container is not working
with PHP shindig
Posted by "impetus technologies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632683#action_12632683 ]
impetus technologies commented on SHINDIG-600:
----------------------------------------------
I think the is coming because of response format in PHP is different than java one.
PHP response:
{"responses":{"viewer":{"response":{"isOwner":true,"isViewer":true,"name":{"familyName":"Doe","givenName"
:"John","formatted":"John Doe"},"gender":"male","id":"john.doe","displayName":"Johnny"}},"viewerFriends"
:{"response":{"entry":[{"isOwner":false,"isViewer":false,"name":{"familyName":"Doe","givenName":"Jane"
,"formatted":"Jane Doe"},"gender":"female","id":"jane.doe","displayName":"Janey"},{"isOwner":false,"isViewer"
:false,"name":{"familyName":"Doe","givenName":"George","formatted":"George Doe"},"gender":"male","id"
:"george.doe","displayName":"Georgey"},{"isOwner":false,"isViewer":false,"name":{"familyName":"Meik\u00e4l
\u00e4inen","givenName":"Maija","formatted":"Maija Meik\u00e4l\u00e4inen"},"gender":"female","id":"maija
.m","displayName":"Maija"}],"startIndex":0,"totalResults":3}},"viewerData":{"response":{"entry":{"john
.doe":[]},"startIndex":0,"totalResults":1}},"viewerFriendData":{"response":{"entry":{"jane.doe":{"count"
:"7"},"george.doe":{"count":"2"}},"startIndex":0,"totalResults":2}}},"error":false}
Java Response:
[{"id":"viewer","data":{"id":"john.doe","isViewer":false,"name":{"formatted":"John Doe","familyName"
:"Doe","givenName":"John"},"isOwner":false,"gender":"male","displayName":"Johnny"}},{"id":"viewerFriends"
,"data":{"startIndex":0,"totalResults":3,"list":[{"id":"george.doe","isViewer":false,"name":{"formatted"
:"George Doe","familyName":"Doe","givenName":"George"},"isOwner":false,"gender":"male","displayName"
:"Georgey"},{"id":"jane.doe","isViewer":false,"name":{"formatted":"Jane Doe","familyName":"Doe","givenName"
:"Jane"},"isOwner":false,"gender":"female","displayName":"Janey"},{"id":"maija.m","isViewer":false,"name"
:{"formatted":"Maija Meikäläinen","familyName":"Meikäläinen","givenName":"Maija"},"isOwner":false
,"gender":"female","displayName":"Maija"}]}},{"id":"viewerData","data":{"john.doe":{"count":"0"}}},{"id"
:"viewerFriendData","data":{"jane.doe":{"count":"7"},"maija.m":{},"george.doe":{"count":"2"}}}]
> Sample Container is not working with PHP shindig
> ------------------------------------------------
>
> Key: SHINDIG-600
> URL: https://issues.apache.org/jira/browse/SHINDIG-600
> Project: Shindig
> Issue Type: Bug
> Environment: Windows
> Reporter: impetus technologies
>
> Sample Container is not working with PHP shindig. It is throwing javascript error "serverJson is undefined" while displaying gadgets.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (SHINDIG-600) Sample Container is not
working with PHP shindig
Posted by "impetus technologies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632683#action_12632683 ]
impetus edited comment on SHINDIG-600 at 9/19/08 6:49 AM:
-----------------------------------------------------------------------
I think the issue is coming because of response format in PHP is different than java one.
PHP response:
{"responses":{"viewer":{"response":{"isOwner":true,"isViewer":true,"name":{"familyName":"Doe","givenName"
:"John","formatted":"John Doe"},"gender":"male","id":"john.doe","displayName":"Johnny"}},"viewerFriends"
:{"response":{"entry":[{"isOwner":false,"isViewer":false,"name":{"familyName":"Doe","givenName":"Jane"
,"formatted":"Jane Doe"},"gender":"female","id":"jane.doe","displayName":"Janey"},{"isOwner":false,"isViewer"
:false,"name":{"familyName":"Doe","givenName":"George","formatted":"George Doe"},"gender":"male","id"
:"george.doe","displayName":"Georgey"},{"isOwner":false,"isViewer":false,"name":{"familyName":"Meik\u00e4l
\u00e4inen","givenName":"Maija","formatted":"Maija Meik\u00e4l\u00e4inen"},"gender":"female","id":"maija
.m","displayName":"Maija"}],"startIndex":0,"totalResults":3}},"viewerData":{"response":{"entry":{"john
.doe":[]},"startIndex":0,"totalResults":1}},"viewerFriendData":{"response":{"entry":{"jane.doe":{"count"
:"7"},"george.doe":{"count":"2"}},"startIndex":0,"totalResults":2}}},"error":false}
Java Response:
[{"id":"viewer","data":{"id":"john.doe","isViewer":false,"name":{"formatted":"John Doe","familyName"
:"Doe","givenName":"John"},"isOwner":false,"gender":"male","displayName":"Johnny"}},{"id":"viewerFriends"
,"data":{"startIndex":0,"totalResults":3,"list":[{"id":"george.doe","isViewer":false,"name":{"formatted"
:"George Doe","familyName":"Doe","givenName":"George"},"isOwner":false,"gender":"male","displayName"
:"Georgey"},{"id":"jane.doe","isViewer":false,"name":{"formatted":"Jane Doe","familyName":"Doe","givenName"
:"Jane"},"isOwner":false,"gender":"female","displayName":"Janey"},{"id":"maija.m","isViewer":false,"name"
:{"formatted":"Maija Meikäläinen","familyName":"Meikäläinen","givenName":"Maija"},"isOwner":false
,"gender":"female","displayName":"Maija"}]}},{"id":"viewerData","data":{"john.doe":{"count":"0"}}},{"id"
:"viewerFriendData","data":{"jane.doe":{"count":"7"},"maija.m":{},"george.doe":{"count":"2"}}}]
was (Author: impetus):
I think the is coming because of response format in PHP is different than java one.
PHP response:
{"responses":{"viewer":{"response":{"isOwner":true,"isViewer":true,"name":{"familyName":"Doe","givenName"
:"John","formatted":"John Doe"},"gender":"male","id":"john.doe","displayName":"Johnny"}},"viewerFriends"
:{"response":{"entry":[{"isOwner":false,"isViewer":false,"name":{"familyName":"Doe","givenName":"Jane"
,"formatted":"Jane Doe"},"gender":"female","id":"jane.doe","displayName":"Janey"},{"isOwner":false,"isViewer"
:false,"name":{"familyName":"Doe","givenName":"George","formatted":"George Doe"},"gender":"male","id"
:"george.doe","displayName":"Georgey"},{"isOwner":false,"isViewer":false,"name":{"familyName":"Meik\u00e4l
\u00e4inen","givenName":"Maija","formatted":"Maija Meik\u00e4l\u00e4inen"},"gender":"female","id":"maija
.m","displayName":"Maija"}],"startIndex":0,"totalResults":3}},"viewerData":{"response":{"entry":{"john
.doe":[]},"startIndex":0,"totalResults":1}},"viewerFriendData":{"response":{"entry":{"jane.doe":{"count"
:"7"},"george.doe":{"count":"2"}},"startIndex":0,"totalResults":2}}},"error":false}
Java Response:
[{"id":"viewer","data":{"id":"john.doe","isViewer":false,"name":{"formatted":"John Doe","familyName"
:"Doe","givenName":"John"},"isOwner":false,"gender":"male","displayName":"Johnny"}},{"id":"viewerFriends"
,"data":{"startIndex":0,"totalResults":3,"list":[{"id":"george.doe","isViewer":false,"name":{"formatted"
:"George Doe","familyName":"Doe","givenName":"George"},"isOwner":false,"gender":"male","displayName"
:"Georgey"},{"id":"jane.doe","isViewer":false,"name":{"formatted":"Jane Doe","familyName":"Doe","givenName"
:"Jane"},"isOwner":false,"gender":"female","displayName":"Janey"},{"id":"maija.m","isViewer":false,"name"
:{"formatted":"Maija Meikäläinen","familyName":"Meikäläinen","givenName":"Maija"},"isOwner":false
,"gender":"female","displayName":"Maija"}]}},{"id":"viewerData","data":{"john.doe":{"count":"0"}}},{"id"
:"viewerFriendData","data":{"jane.doe":{"count":"7"},"maija.m":{},"george.doe":{"count":"2"}}}]
> Sample Container is not working with PHP shindig
> ------------------------------------------------
>
> Key: SHINDIG-600
> URL: https://issues.apache.org/jira/browse/SHINDIG-600
> Project: Shindig
> Issue Type: Bug
> Environment: Windows
> Reporter: impetus technologies
>
> Sample Container is not working with PHP shindig. It is throwing javascript error "serverJson is undefined" while displaying gadgets.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.