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

Florian Müller commented on CMIS-430:
-------------------------------------

Have you changed the repository info to report that getDescendants and 
getFolderTree are now supported? The server framework checks the repository 
info if it has to generate the descendants and folder tree links.

>From the client perspective it looks like this:

The folder Atom entry should have two "down" links if getDescendants is 
supported. One link has the type "application/atom+xml"; the other one has the 
type "application/cmistree+xml". The second link is the descendants link and 
the CMIS specification defines that only this link supports deleteTree. 

OpenCMIS falls back to first link if the second link is not present. That's not 
100% spec conform but necessary to support incompliant CMIS servers. That's why 
you are seeing DELETE calls on the children feed.

The first link point to the folder children feed. The spec defines that this 
feed should support GET and POST but not DELETE. And that's what your 
suggestion does. It adds support for DELETE to the folder children feed. It's 
technically possible, but does not concur with the CMIS spec.


> Server-Binding - Children.DeleteTree does not work with Rest-Atom
> -----------------------------------------------------------------
>
>                 Key: CMIS-430
>                 URL: https://issues.apache.org/jira/browse/CMIS-430
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-server
>    Affects Versions: OpenCMIS 0.4.0, OpenCMIS 0.5.0
>         Environment: Windows XP, JDK 1.6, Tomcat 6
>            Reporter: Jonathan Lapointe
>            Assignee: Florian Müller
>              Labels: 405-error, atompub, binding, opencmis, rest
>         Attachments: CmisAtomPubServlet.java
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> We have developed a CMIS server using OpenCMIS-Server (Maven overlay). 
> When testing the service using CMIS workbench 0.4.0 while connected with 
> AtomPub, The operation DeleteTree on a folder returns 405-Method not allowed.
> Workbench issue a http request like this DELETE 
> /cmissvr/atom/racineMcccf/children?id=xxx
> Execution of the TCK results in the same error.
> There is no error while connected with WebService's bindings
> Adding this line in CmisAtomPubServlet.init resolve the issue:
> dispatcher.addResource(AtomPubUtils.RESOURCE_CHILDREN, 
> Dispatcher.METHOD_DELETE, ObjectService.class, "deleteTree");
> Note: We have not implemented the "Descendants" capabilities, maybe this is 
> the reason that Descendants/DELETE (ObjectService.deleteTree) is not invoked

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


Reply via email to