[
https://issues.apache.org/jira/browse/SHINDIG-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657786#action_12657786
]
Chico Charlesworth commented on SHINDIG-798:
--------------------------------------------
I can't say I disagree with Vicent, but there's definitely a discrepancy at the
moment with the spec and what fields are defined in Shindig's Activity
interface (i.e. org.apache.shindig.social.opensocial.model.Activity). This
discrepancy is causing problems when validating Activity XML responses in my
tests.
The "updated" field isn't present in the spec
(http://code.google.com/apis/opensocial/docs/0.8/reference/#opensocial.Activity.Field),
but Activity.java has the following:
- defined in the Field enum:
LAST_UPDATED("updated"), /* Needed to support the RESTful api */
and
/**
* Get the last updated date of the Activity, additional to the Opensocial
specification for the
* REST-API. Container support for this field is OPTIONAL.
*
* @return the last updated date
*/
Date getUpdated();
Who's the best person to ask on how best to resolve this one? I see Cassie Doll
was the first committer of this class.
> "updated" xs:element missing from opensocial.xsd for Activity
> -------------------------------------------------------------
>
> Key: SHINDIG-798
> URL: https://issues.apache.org/jira/browse/SHINDIG-798
> Project: Shindig
> Issue Type: Bug
> Components: RESTful API (Java)
> Reporter: Chico Charlesworth
> Attachments: fix-798-727075-bug.patch
>
>
> opensocial.xsd is missing a "updated" xs:element for Activity.
> I noticed that the XML format XSD specified in the OpenSocial Restful
> Protocol
> (http://www.opensocial.org/Technical-Resources/opensocial-spec-v081/restful-protocol)
> is also missing the "updated" element. But I think it should definitely be
> there, since according to the OpenSocial Restful Protocol the following XML
> response is valid:
> <activity xmlns="http://ns.opensocial.org/2008/opensocial">
>
> <id>http://example.org/activities/example.org:87ead8dead6beef/self/af3778</id>
> <title><a href=\"foo\">some activity</a></title>
> <updated>2008-02-20T23:35:37.266Z</updated>
> <body>Some details for some activity</body>
> <bodyId>383777272</bodyId>
> <url>http://api.example.org/activity/feeds/.../af3778</url>
> <userId>example.org:34KJDCSKJN2HHF0DW20394</userId>
> </activity>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.