[jira] Resolved: (CMIS-93) AtomPub service document returns invalid capabilityChanges
[ https://issues.apache.org/jira/browse/CMIS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Florent Guillaume resolved CMIS-93. --- Resolution: Fixed r897177 AtomPub service document returns invalid capabilityChanges -- Key: CMIS-93 URL: https://issues.apache.org/jira/browse/CMIS-93 Project: Chemistry Issue Type: Bug Components: atompub, server Reporter: Florent Guillaume Assignee: Florent Guillaume It actually returns the value of capabilityJoin instead of capabilityChanges -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: UriTemplate for AtomPubCMIS.URITMPL_OBJECT_BY_PATH does not work for jax-rs binding
Yes, im sure. I use jaxrs and configure it with spring and deploy on Apache tomcat 6.x jaxrs:server id=cmis address=/ jaxrs:serviceBeans ref bean=abderaResource / descriptioncmis service/description /jaxrs:serviceBeans jaxrs:providers ref bean=abderaResponseProvider / descriptioncmis provider/description /jaxrs:providers /jaxrs:server bean id=abderaResource class=org.apache.chemistry.atompub.server.jaxrs.AbderaResource constructor-arg ref=repoJcrFactory / /bean bean id=abderaResponseProvider class=org.apache.chemistry.atompub.server.jaxrs.AbderaResponseProvider / Is it possible that Tomcat has problems with %2F ? I ve no idea. GetObjectByPath in Abderaresource is never called. On Fri, Jan 8, 2010 at 3:26 PM, Florent Guillaume f...@nuxeo.com wrote: It works in my testing. Are you sure you're using the JAX-RS bindings? Could you paste the code you use to start the server? Florent On Tue, Jan 5, 2010 at 12:40 PM, Flo enjoi...@googlemail.com wrote: Problem is, that if I set a breakpoint in AbderaResource.doGetObjectByPath(...) it's never reached. So I get a 400. Im running Abdera jaxrs server and test with the TCK. The request url from TCK is http://0.0.0.0:8080/poc-atompub-server-spring/srv/cmis/path/%2FCMISTCK%201262621638852%20-%20testObjectByPath%2FtestObjectByPath . The url until path is ok. -- Florent Guillaume, Director of RD, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
Re: UriTemplate for AtomPubCMIS.URITMPL_OBJECT_BY_PATH does not work for jax-rs binding
That's very strange, it works well for me with the JAX-RS implementation from CXF 2.2.2 (used in unit tests), but apparently your JAX-RS implementation (which is it?) fails. And I just tested with RESTEasy 1.0.2 and it fails as well. I'll investigate -- but you're right this must have something to do with the path percent-decoding. Florent On Fri, Jan 8, 2010 at 3:35 PM, Flo enjoi...@googlemail.com wrote: Yes, im sure. I use jaxrs and configure it with spring and deploy on Apache tomcat 6.x Is it possible that Tomcat has problems with %2F ? I ve no idea. GetObjectByPath in Abderaresource is never called. -- Florent Guillaume, Director of RD, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
Re: UriTemplate for AtomPubCMIS.URITMPL_OBJECT_BY_PATH does not work for jax-rs binding
I use jax-rs cxf 2.2.2 as well. If I type the path without the %2F's in browser or via curl it's ok. strange. Florian Roth On Fri, Jan 8, 2010 at 5:18 PM, Florent Guillaume f...@nuxeo.com wrote: That's very strange, it works well for me with the JAX-RS implementation from CXF 2.2.2 (used in unit tests), but apparently your JAX-RS implementation (which is it?) fails. And I just tested with RESTEasy 1.0.2 and it fails as well. I'll investigate -- but you're right this must have something to do with the path percent-decoding. Florent On Fri, Jan 8, 2010 at 3:35 PM, Flo enjoi...@googlemail.com wrote: Yes, im sure. I use jaxrs and configure it with spring and deploy on Apache tomcat 6.x Is it possible that Tomcat has problems with %2F ? I ve no idea. GetObjectByPath in Abderaresource is never called. -- Florent Guillaume, Director of RD, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
Re: UriTemplate for AtomPubCMIS.URITMPL_OBJECT_BY_PATH does not work for jax-rs binding
Thanks for that. But I think it's a Bad request from the TCK because somethin/%2Fsomething is somethin//something thats one slash too mutch. so it will not success if I start apache with the allow encode %2F option. Regards Florian On Fri, Jan 8, 2010 at 6:16 PM, Florent Guillaume f...@nuxeo.com wrote: When I say I use CXF 2.2.2 it's actually inside unit tests, so the servlet container used is not Tomcat but an embedded Jetty, which doesn't have any problem with %2F. Florent On Fri, Jan 8, 2010 at 6:02 PM, Flo enjoi...@googlemail.com wrote: I use jax-rs cxf 2.2.2 as well. If I type the path without the %2F's in browser or via curl it's ok. strange. Florian Roth On Fri, Jan 8, 2010 at 5:18 PM, Florent Guillaume f...@nuxeo.com wrote: That's very strange, it works well for me with the JAX-RS implementation from CXF 2.2.2 (used in unit tests), but apparently your JAX-RS implementation (which is it?) fails. And I just tested with RESTEasy 1.0.2 and it fails as well. I'll investigate -- but you're right this must have something to do with the path percent-decoding. Florent On Fri, Jan 8, 2010 at 3:35 PM, Flo enjoi...@googlemail.com wrote: Yes, im sure. I use jaxrs and configure it with spring and deploy on Apache tomcat 6.x Is it possible that Tomcat has problems with %2F ? I ve no idea. GetObjectByPath in Abderaresource is never called. -- Florent Guillaume, Director of RD, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87 -- Florent Guillaume, Director of RD, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
Re: UriTemplate for AtomPubCMIS.URITMPL_OBJECT_BY_PATH does not work for jax-rs binding
Ok. When I run tomcat with -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true only the first %2F in http://0.0.0.0:8080/poc-atompub-server-spring/srv/cmis/path/%2FCMISTCK%201262621638852%20-%20testObjectByPath%2FtestObjectByPath makes problems. Thats why TCK fails On Fri, Jan 8, 2010 at 7:41 PM, Florent Guillaume f...@nuxeo.com wrote: No, somethin/%2Fsomething and somethin//something are different URLs. And in the CMIS spec, there's a URI template for objectbypath where, by definition of URI templates, you *have* to encode slashes (according to RFC 3986). So you'll always end up with %2F in some URLs. Florent On Fri, Jan 8, 2010 at 7:06 PM, Flo enjoi...@googlemail.com wrote: Thanks for that. But I think it's a Bad request from the TCK because somethin/%2Fsomething is somethin//something thats one slash too mutch. so it will not success if I start apache with the allow encode %2F option. Regards Florian On Fri, Jan 8, 2010 at 6:16 PM, Florent Guillaume f...@nuxeo.com wrote: When I say I use CXF 2.2.2 it's actually inside unit tests, so the servlet container used is not Tomcat but an embedded Jetty, which doesn't have any problem with %2F. Florent On Fri, Jan 8, 2010 at 6:02 PM, Flo enjoi...@googlemail.com wrote: I use jax-rs cxf 2.2.2 as well. If I type the path without the %2F's in browser or via curl it's ok. strange. Florian Roth On Fri, Jan 8, 2010 at 5:18 PM, Florent Guillaume f...@nuxeo.com wrote: That's very strange, it works well for me with the JAX-RS implementation from CXF 2.2.2 (used in unit tests), but apparently your JAX-RS implementation (which is it?) fails. And I just tested with RESTEasy 1.0.2 and it fails as well. I'll investigate -- but you're right this must have something to do with the path percent-decoding. Florent On Fri, Jan 8, 2010 at 3:35 PM, Flo enjoi...@googlemail.com wrote: Yes, im sure. I use jaxrs and configure it with spring and deploy on Apache tomcat 6.x Is it possible that Tomcat has problems with %2F ? I ve no idea. GetObjectByPath in Abderaresource is never called. -- Florent Guillaume, Director of RD, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87 -- Florent Guillaume, Director of RD, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87 -- Florent Guillaume, Director of RD, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87