You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Joshy Augustine <jo...@gmail.com> on 2014/10/01 09:39:49 UTC

UnfileObject.DELETESINGLEFILED flag

Hi All,

I have query regarding the expected behaviour of
UnfileObject.*DELETESINGLEFILED
flag.*

I am using Alfresco Community Edition 5 and Open CMIS 0.12. I am invoking
the following API where 'folder'  contains a multi-filed(ie, existing in
two folders) document.

folder.deleteTree(*true*, UnfileObject.*DELETESINGLEFILED*, *true*)
I am finding that the folder is deleted completely and the multi-filed
document is disappearing from both folders. Is this expected? If so, is
there a way I can mention via Open CMIS API either (a) Throw an exception
if the folder tree contains a multi-filed document OR (b) Do not delete a
multi-filed document other than from the current folder?

Thanks for your help.

-- 
Cheers,
Joshy

Re: UnfileObject.DELETESINGLEFILED flag

Posted by Dave Sanders <da...@gmail.com>.
Similar Alfresco issue [1] has a status of "Won't Fix".   The last two
comments on [1] explain why.

[1] https://issues.alfresco.com/jira/browse/ALF-15801



On Wed, Oct 1, 2014 at 12:50 AM, Florian Müller <fm...@apache.org> wrote:

> Hi Joshy,
>
> DELETESINGLEFILED should not delete a document if it exists in another
> folder.
> Sounds like a server issue. You may want to contact Alfresco.
>
>
> - Florian
>
>
>  Hi All,
>>
>> I have query regarding the expected behaviour of
>> UnfileObject.*DELETESINGLEFILED
>> flag.*
>>
>> I am using Alfresco Community Edition 5 and Open CMIS 0.12. I am invoking
>> the following API where 'folder'  contains a multi-filed(ie, existing in
>> two folders) document.
>>
>> folder.deleteTree(*true*, UnfileObject.*DELETESINGLEFILED*, *true*)
>> I am finding that the folder is deleted completely and the multi-filed
>> document is disappearing from both folders. Is this expected? If so, is
>> there a way I can mention via Open CMIS API either (a) Throw an exception
>> if the folder tree contains a multi-filed document OR (b) Do not delete a
>> multi-filed document other than from the current folder?
>>
>> Thanks for your help.
>>
>

Re: UnfileObject.DELETESINGLEFILED flag

Posted by Florian Müller <fm...@apache.org>.
Hi Joshy,

DELETESINGLEFILED should not delete a document if it exists in another 
folder.
Sounds like a server issue. You may want to contact Alfresco.


- Florian


> Hi All,
> 
> I have query regarding the expected behaviour of
> UnfileObject.*DELETESINGLEFILED
> flag.*
> 
> I am using Alfresco Community Edition 5 and Open CMIS 0.12. I am 
> invoking
> the following API where 'folder'  contains a multi-filed(ie, existing 
> in
> two folders) document.
> 
> folder.deleteTree(*true*, UnfileObject.*DELETESINGLEFILED*, *true*)
> I am finding that the folder is deleted completely and the multi-filed
> document is disappearing from both folders. Is this expected? If so, is
> there a way I can mention via Open CMIS API either (a) Throw an 
> exception
> if the folder tree contains a multi-filed document OR (b) Do not delete 
> a
> multi-filed document other than from the current folder?
> 
> Thanks for your help.