chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kraushaar (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CMIS-869) DefaultDocumentTypeHandler: createDocument: Wrong implementation of CMIS 1.0 specification
Date Thu, 20 Nov 2014 12:27:34 GMT

    [ https://issues.apache.org/jira/browse/CMIS-869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14217859#comment-14217859
] 

Jochen Kraushaar edited comment on CMIS-869 at 11/20/14 12:26 PM:
------------------------------------------------------------------

Thank you for letting me know. Btw. what is the reason for this decision?


was (Author: jkraushaar):
Thank you for letting me know.

> DefaultDocumentTypeHandler: createDocument: Wrong implementation of CMIS 1.0 specification
> ------------------------------------------------------------------------------------------
>
>                 Key: CMIS-869
>                 URL: https://issues.apache.org/jira/browse/CMIS-869
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-server-jcr
>    Affects Versions: OpenCMIS 0.11.0
>            Reporter: Jochen Kraushaar
>
> The CMIS 1.0 specification says:
> 2.2.4.1 createDocument > 2.2.4.1.1 Inputs: Enum versioningState is optional. The default
is "major".
> When creating a new versionable document using the DefaultDocumentTypeHandler the created
JCR node is in state isCheckedOut = true (see JCR 2.0 15.1 Creating a Versionable Node). At
the end of the createDocument method getJcrNode is called. If versioningState is set to "major"
or "minor", the node is checked in. If no versioningState is given, the private working copy
is returned by getJcrNode:
> {code}
> if (versioningState == VersioningState.MINOR || versioningState == VersioningState.MAJOR)
{
>     return jcrVersion.checkin(null, null, "auto checkin");
> } else {
>     return jcrVersion.getPwc();
> }
> {code}
> Returning the private working copy is (according to the CMIS spec) only allowed if versioningState
is set to "checkedout".
> Instead of using "major" as default for versioningState, "checkedout" is the default
if versioningState parameter is omitted by the client.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message