Issue Details (XML | Word | Printable)

Key: CMIS-174
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Al Brown
Reporter: Ryan McVeigh
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OASIS Content Management Interoperability Services (CMIS) TC

hasMoreItems element in schema is redundant

Created: 08/May/09 03:26 PM   Updated: 11/Jan/10 06:59 PM
Component/s: REST/AtomPub Binding
Affects Version/s: None
Fix Version/s: Draft 0.62

Proposal:
Remove the hasMoreItems from the schema. State on feed resources: If more items are available than contained in the feed returned, a link with the relation next MUST be included in the feed.

In changes collection, state:
if the next page of the changes does not exist yet, the link relation next MAY be available. If the next link relation is not available, the client should revisit the feed in the future and look for new items and the next link relation.


 Description  « Hide
Why do paged feeds use the hasMoreItems element (from the schema)? The AtomPub rfc says this:

"For this reason, servers MAY respond to Collection GET requests with a Feed Document containing a partial list of the Collection's members, and a link to the next partial list feed, if it exists."

I believe this means that the link for next will not be present if there are no more items to be retrieved.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Al Brown added a comment - 08/May/09 05:25 PM
I would not want to predicate understanding of more items to be retrieved on whether the link next is there. For example, combining the two in the unified search case poses a problem as you need the next link before there are items in it.

If the tc wants to use the link next as signaling, then that is okay with me too. We would have to solve the unified search case then.

Ethan Gur-esh added a comment - 19/May/09 01:50 PM
Changing this to a REST/AtomPub bug. The domain model is correct (it says that there MUST be a way for each binding to signal that it has more items)... the bug is about how we map this into our REST/AtomPub binding.

Ryan McVeigh added a comment - 28/May/09 05:06 PM
Ethan: Thanks, that makes sense.

Al: I think this comes down to understanding the intent of the AtomPub rfc. We shouldn't duplicate this signal of the intent of the rfc is to use this link.

Al Brown added a comment - 04/Jun/09 05:31 PM
added text per wed's call for review in proposal

Al Brown added a comment - 08/Jun/09 01:12 PM
TC Accepted

Al Brown added a comment - 19/Jun/09 05:43 PM
in 62b

Al Brown added a comment - 04/Jan/10 11:49 PM
JIRA Cleanup