chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Potts (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CMIS-313) Multifiling folders returns conflict
Date Tue, 22 Feb 2011 14:42:38 GMT

    [ https://issues.apache.org/jira/browse/CMIS-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997825#comment-12997825
] 

Jeff Potts commented on CMIS-313:
---------------------------------

The spec is ambiguous, at best. It uses the term "object" throughout the discussion of addObjectToFolder,
which makes you think it could apply to either Documents or Folders. If it were Document-specific,
it should be using "Document" instead. I see no language that specifically says a Folder cannot
be added to another Folder via that method. I guess that is an issue for OASIS. 

> Multifiling folders returns conflict
> ------------------------------------
>
>                 Key: CMIS-313
>                 URL: https://issues.apache.org/jira/browse/CMIS-313
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-server-inmemory
>         Environment: OpenCMIS rev 1073115, Workbench, opencmis-server-inmemory, Tomcat
6, Mac OS X
>            Reporter: Jeff Potts
>            Assignee: Jeff Potts
>
> If I create the following folder structure:
> /cmislib/sub1
> /cmislib/sub2
> And then try to add sub2 as a child of sub1 using the groovy script below, I get a constraint
violation.
> Multifiling documents seems to work fine, however.
> Jeff
> groovy> import org.apache.chemistry.opencmis.commons.* 
> groovy> import org.apache.chemistry.opencmis.commons.data.* 
> groovy> import org.apache.chemistry.opencmis.commons.enums.* 
> groovy> import org.apache.chemistry.opencmis.client.api.* 
> groovy> cmis = new scripts.CMIS(session) 
> groovy> Folder folder = cmis.getFolder("/cmislib") 
> groovy> println folder.id 
> groovy> Folder sub1 = cmis.getFolder("/cmislib/sub1") 
> groovy> println sub1.id 
> groovy> Folder sub2 = cmis.getFolder("/cmislib/sub2") 
> groovy> println sub2.id 
> groovy> sub2.addToFolder(sub1, true) 
>  
> 136
> 137
> 138
> Exception thrown
> org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: Conflict
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:406)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:496)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.MultiFilingServiceImpl.addObjectToFolder(MultiFilingServiceImpl.java:63)
> 	at org.apache.chemistry.opencmis.client.runtime.AbstractFilableCmisObject.addToFolder(AbstractFilableCmisObject.java:151)
> 	at multifile.run(multifile.groovy:20)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message