On Wed, Feb 24, 2010 at 1:24 PM, Florent Guillaume <[email protected]> wrote:

> Hi Alexey,
>
> On Wed, Feb 24, 2010 at 10:43 AM, Alexey Zavizionov
> <[email protected]> wrote:
> > I have the same issue. I did some research.
> > Within method GetTest.testObjectByPath
>
> Please state what code you're talking about. Apache Chemistry now has
> at least four different codebases, so it's worth telling us what
> you're talking about. I guess here it's the TCK.
>

Ok. Yes, i'm about chemistry-tck-atompub.


>
> >  it generates uri from template where the "/" encoded within path uri
> param,
> > that shouldn't do!
>
> Actually it should, that's what the CMIS spec says:
> " Arguments that are substituted for URI template parameters MUST be
> percent escaped according to RFC3986 "
>

I saw it. I guess Tomcat also should respect that encoded path param
according to RFC3986.
With the url with encoded path param tomcat cannot handle request to serve
servlet :(


>
> > code:
> > IRI objectByPathRequest = objectByPathTemplate.generateUri(variables);
> >
> > So the uri which is :
> >
> http://localhost:8080/xcmis/rest/cmisatom/cmis1/objectbypath/%2FCMISTCK%201266939409428%20-%20testObjectByPath%2FtestObjectByPath?filter=&includeAllowableActions=&includePolicyIds=&includeRelationships=&includeACL=&renditionFilter=
> > should be:
> >
> http://localhost:8080/xcmis/rest/cmisatom/cmis1/objectbypath/CMISTCK%201266939409428%20-%20testObjectByPath/testObjectByPath?filter=&includeAllowableActions=&includePolicyIds=&includeRelationships=&includeACL=&renditionFilter=
>
> No it shouldn't. Juste because it's a "path" parameter doesn't mean
> that slashes shouldn't be encoded.
>

That test are still broken. What do we should to do?

Regards,
Alexey.


>
> Regards,
> Florent
>
> --
> Florent Guillaume, Director of R&D, Nuxeo
> Open Source, Java EE based, Enterprise Content Management (ECM)
> http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87
>

Reply via email to