Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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
catch (CmisObjectNotFoundException e) {
}
}
</code>
should fix this issue.