UpdateSmokeTest does not properly support filesystem based repositories
-----------------------------------------------------------------------
Key: CMIS-486
URL: https://issues.apache.org/jira/browse/CMIS-486
Project: Chemistry
Issue Type: Bug
Components: opencmis-tck
Reporter: Cedric Moitrier
By filesystem based repositories I mean repositories whose object identifiers
are somehow derivated from their path; thus their identifier does change when
their name is updated.
The test ends with the following statement:
<code>
if (!doc1.getId().equals(doc2.getId())) {
deleteObject(doc1);
}
</code>
which fails in the aformentioned scenario because at this point doc1.getId()
does no more identify any existing document.
Replacing this piece of code by:
<code>
if (!doc1.getId().equals(doc2.getId())) {
try {
session.getObject(doc1.getId());
deleteObject(doc1);
} catch (CmisObjectNotFoundException e) {
}
}
</code>
should fix this issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira