← Prev in month ← Prev in thread

[OASIS Issue Tracker] Commented: (CMIS-605) setContentStream (PUT)should return 200 on success, not 201

From
OASIS Issues Tracker <>
Date
2009-12-02T19:59:15+00:00
ID
1110313812.17501259783955481.JavaMail.tomcat55@mw00
Thread
[OASIS Issue Tracker] Commented: (CMIS-605) setContentStream (PUT)should return 200 on success, not 201
[ http://tools.oasis-open.org/issues/browse/CMIS-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16721#action_16721 ] 

Norrie Quinn commented on CMIS-605:
-----------------------------------

> there is no creation involved
If no content stream exists then you could argue that there is creation.

RFC 2616
9.6 PUT
...
If the Request-URI does not point to an existing resource, and that URI is
capable of being defined as a new resource by the requesting user
agent, the origin server can create the resource with that URI. If a
new resource is created, the origin server MUST inform the user agent
via the 201 (Created) response.
...

> setContentStream (PUT) should return 200 on success, not 201
> ------------------------------------------------------------
>
>                 Key: CMIS-605
>                 URL: http://tools.oasis-open.org/issues/browse/CMIS-605
>             Project: OASIS Content Management Interoperability Services (CMIS) TC
>          Issue Type: Bug
>          Components: REST/AtomPub Binding
>    Affects Versions: Committee Draft 04
>            Reporter: Florent Guillaume
>            Assignee: Al Brown
>            Priority: Minor
>
> 3.10.7.2 says that a successful PUT of a content stream should return 201 (Created).
> But PUT is for editing known resources, there is no creation involved, and we should be consistent with AtomPub that specifies that 200 (Ok) is returned.

-- 
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
← Prev in month ← Prev in thread