chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "linzhixing (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-720) TCK ChangeTokenTest doesn't work well about setContentStream because of an CmisVersioningException
Date Thu, 12 Sep 2013 16:38:53 GMT
linzhixing created CMIS-720:
-------------------------------

             Summary: TCK ChangeTokenTest doesn't work well about setContentStream because
of an CmisVersioningException
                 Key: CMIS-720
                 URL: https://issues.apache.org/jira/browse/CMIS-720
             Project: Chemistry
          Issue Type: Bug
    Affects Versions: OpenCMIS 0.10.0
         Environment: Workbench version: "Version: 1.0.0-SNAPSHOT / Revision: 1519696 / Build:
2013-09-03T16:33:20+0200".
            Reporter: linzhixing
            Priority: Minor


ChangeTokenTest#runContentTest executes tests of setContentStream.
I found LINE132, the second call of setContentStream failed because of a CmisVersioningException
error, which is implemented in my CMIS server.
The test intends to check whether the second call causes correctly an update conflict error,
not a versioning error.

According to the specs 2.2.4.18, setContentStream service 
    -MAY automatically create new document versions as part of this service operations. Therefore,
the objectId output NEED NOT be identical to the objectId input.
    -MAY throw versioning error if the object is a non-current document version.

Unfortunately, my server implements both feature, say, in the first call of setContentStream
a new document version is created(like version1.1) and the old document(version1.0) changed
to be non-current version. And then, in the second call, setContentStream is called for the
old document and raise the versioning error.

So I suppose that any care should be taken for this situation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message