On Sat, Jul 26, 2008 at 4:04 AM, Chris Chabot <[EMAIL PROTECTED]> wrote:

> Forwarding to the shindig-dev list where this belongs :)
>
> Guys the question is: The fetch feed format is different between iGoogle
> (which has Entry vs item, Link vs link, and some extra fields which shindig
> doesn't provided) and shindig.
>
> Is this a case of the specification being different between the two or a
> bug?


It's another case of the specification not bothering to actually specify:

http://www.opensocial.org/Technical-Resources/opensocial-spec-v08/gadgets-reference08#gadgets.io.ContentType

The java version matches what iGoogle did (
http://svn.apache.org/viewvc/incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/FeedProcessor.java?revision=675689&view=markup
)

But that doesn't mean that the PHP version is necessarily "wrong", as the
spec doesn't even say what the response format is supposed to be at all. I
think the PHP version actually makes more sense, since element names are
lower case in both RSS and Atom, and I never understood why iG did it the
way they did.

Whatever you decide, the PHP and Java versions should agree. I lean slightly
towards going with the iG variant to avoid compatibility issues.


>
>
> On Jul 26, 2008, at 11:54 AM, <[EMAIL PROTECTED]> <
> [EMAIL PROTECTED]> wrote:
>
>  Hello,
>>
>> I've found small incompatibility how feed requests are treated by
>> shinding.
>> In
>> http://code.google.com/apis/opensocial/articles/makerequest.html#contenttypes-feed
>>  we
>> can read that making makeRequest with contentType=FEED we should get
>> something like this:
>>
>> {
>>  URL : "http://example.com";,
>>  Title : "Example Feed",
>>  Description : "A subtitle.",
>>  Link : "http://example.com/feed/";,
>>  Author : "Sample Testington",
>>  Entry : [
>>    {
>>      Title : "You can request feeds with makeRequest",
>>      Link : "http://example.com/entry12345";,
>>      Summary : "Some text."
>>    }
>> }
>>
>> In shinding we get something like:
>> {
>> …
>>  item : [
>>    {
>>      title : "You can request feeds with makeRequest",
>>      link : "http://example.com/entry12345";,
>>      description : "Some text."
>>    }
>> }
>>
>> The url of the gadget which works correctly in iGoogle and not in shinding
>> is:
>>
>> http://static.widgetpot.pl/static/xml/igoogle-b53b3a3d6ab90ce0268229151c9bde11.xml
>>
>> I've made small change, renaming fields in ProxyHandler.php and now it
>> works correctly.
>> These changes are not complete – I'm not sure which names are correct or
>> if those changes didn't break anything.
>>
>> May it be that iGoogle doesn't conforms to the standard? ;)
>>
>> Java version has the same problem.
>>
>> Best regards,
>> Andrzej Margos
>>
>>
>>
>>
>>
>>
>>
>> <ProxyHandler.php.patch>
>>
>
>

Reply via email to