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/18 12:13:44 UTC
[jira] Commented: (SHINDIG-597) Double check RSS & Atom response
format
[ https://issues.apache.org/jira/browse/SHINDIG-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632155#action_12632155 ]
impetus technologies commented on SHINDIG-597:
----------------------------------------------
Hi Chirs,
I have tried restful url to get atom data from both Java/PHP Shindig like
htp://localhost:8080/social/rest/people/canonical/@friends?format=atom
htp://shindig/social/rest/people/canonical/@friends?format=atom
By doing this I got
PHP Shindig output:
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:osearch="http://a9.com/-/spec/opensearch/1.1">
<title>person feed for id shindig:canonical (0 - 3 of 4)</title>
<author>
<uri>urn:guid:canonical</uri>
<name>shindig:canonical</name>
</author>
<updated>2008-09-18T08:48:56+00:00</updated>
<id>urn:guid:canonical</id>
<link rel="self" href="http://shindig/social/rest/people/canonical/@friends?format=atom"/>
<osearch:totalResults>4</osearch:totalResults>
<osearch:startIndex>0</osearch:startIndex>
<osearch:itemsPerPage>20</osearch:itemsPerPage>
<entry>...first item...</entry>
<entry>...second item...</entry>
</feed>
Java Shindig output:
<response>
<entry>...first item...</entry>
<entry>...second item...</entry>
<filtered>true</filtered>
<sorted>true</sorted>
<startIndex>0</startIndex>
<totalResults>4</totalResults>
<updatedSince>true</updatedSince>
</response>
But according to OpenSocial 0.8.1 Restful protocol specification at
http://docs.google.com/View?docid=dcc2jvzt_37hdzwkmf8 2.1
the response in Atom representation of Response should be like
<feed xmlns="http://www.w3.org/2005/Atom" xmlos:osearch="http://a9.com/-/spec/opensearch/1.1">
<author><uri>urn:guid:example.org:58UIDCSIOP233FDKK3HD44</uri></author>
<link rel="next" href="http://api.example.org/..." />
<osearch:totalResults>100</osearch:totalResults>
<osearch:startIndex>1</osearch:startIndex>
<osearch:itemsPerPage>10</osearch:itemsPerPage>
<entry>...first item...</entry>
<entry>...second item...</entry>
...
</feed>
As per the above results and specification I think the PHP Shindig is already returning correct Atom feed and Java Shindig not.
> Double check RSS & Atom response format
> ---------------------------------------
>
> Key: SHINDIG-597
> URL: https://issues.apache.org/jira/browse/SHINDIG-597
> Project: Shindig
> Issue Type: Bug
> Components: Gadget Rendering Server (PHP)
> Reporter: Chris Chabot
>
> Browsing through some test cases, something that i should've filed a bug about long ago floated back up:
> Our current RSS/Atom structure is incompatible with the iGoogle / Java shindig one; Field names don't match up.
> There's no strong specification for what the response -should- be, however it would be for the good-of-all if the response of Java and PHP Shindig were identical :)
> How to diagnose & fix this problem:
> Create a 'Fetch an RSS feed' gadget, run in java and php shindig, rework the field names. The location of the code that deals with this is in:
> shindig/php/src/gadgets/ProxyHandler.php, line 78 - 140
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.