cancel
Showing results for 
Search instead for 
Did you mean: 

deleteTree deletesinglefiled deletes multi-filed object

unknown-user
Champ on-the-rise
Champ on-the-rise
deleteTree  unfileObjects=deletesinglefiled deletes a document that has multiple parent folders.  
Expected:  The document should have been unfiled from the current folder tree and remained filed in the other folder tree(s).

Spec [1] says: 
deletesinglefiled: Delete all fileable non-folder objects whose only parent-folders are in the current folder tree. Unfile all other fileable non-folder objects from the current folder tree.

I reproduced against public Alfresco 4.0.0 (b @build-number@) with AtomPub URL [2].

Reproduce:

  1. Create doc /f1/d1

  2. addObjectToFolder  objectId=/f1/d1, folderId=/f2

  3. Confirm that d1 is filed under both /f1 and /f2.

  4. deleteTree folderId=/f1, unfileObjects=deletesinglefiled, allVersions=true

  5. d1 is not in either /f1 or /f2.

[1] http://docs.oasis-open.org/cmis/CMIS/v1.0/errata-01/os/cmis-spec-v1.0-errata-01-os-complete.html#_To...

[2] http://cmis.alfresco.com/cmisatom
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

please use http://issues.alfresco.com to log potential bugs.
Have you tried running this on the current Alfresco 4.0.d/e? Also, in the steps to reproduce, /f1 should not exist in step 5, correct? So the issue is that /d1 does not exist in /f2 despite using the paramater as defined by CMIS spec.

Regards
Axel

unknown-user
Champ on-the-rise
Champ on-the-rise
I reproduced against 4.0.e Community.   deleteTree deleted the tree, but the document was unexpectedly unfiled (or deleted) from its other parent.  I opened https://issues.alfresco.com/jira/browse/ALF-15801 .
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.