[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Commented: (CMIS-107) Clarify theContentStream resource return value.
[ http://tools.oasis-open.org/issues/browse/CMIS-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10192#action_10192 ]
Julian Reschke commented on CMIS-107:
-------------------------------------
Trying to clarify... Are we talking about:
"3.4.5.7.1.2 PUT
This does a replacement of the content stream. If the document is not checked out, an exception will be thrown. This should follow AtomPub.
Success HTTP code: 201
Returns headers:
- Content-Location: URI for content stream"
In which case:
1) the correct status code for an update of an already existing resource is 200, not 201.
2) from the HTTP point of view, returning a new location as result of a PUT is non-sensical; the client has requested an updated of the resource at the Request-URI, and the server either does it (200 or 201), or rejects the request.
> Clarify the ContentStream resource return value.
> ------------------------------------------------
>
> Key: CMIS-107
> URL: http://tools.oasis-open.org/issues/browse/CMIS-107
> Project: OASIS Content Management Interoperability Services (CMIS) TC
> Issue Type: Bug
> Components: REST/AtomPub Binding
> Affects Versions: Draft 0.50
> Reporter: Ryan McVeigh
> Assignee: Ethan Gur-esh
> Fix For: Draft 0.61
>
>
> The CMIS Resources table (REST section) shows that the ContentStream resource returns "Non-XML", and this is reiterated on the PUT method (setContentStream: "Any"). However, the brief example fragment in the setContentStream Services description shows this returning an Entry object. The setContentStream in Part 1 has it returning simply a documentId. Which of these three should we use?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]