cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kh <jkh...@gmail.com>
Subject .No root resource matching request path with two encodes /s
Date Tue, 08 Mar 2011 18:49:43 GMT
The URL in question is:
/myservice/v1/device/Test%2F%2F70%5C70.v1

I get:
WARNING: .No root resource matching request path
/myservice/v1/device/Test%2F%2F70%5C70.v1 is found

But if I use: /myservice/v1/device/Test%2F70%5C70.v1
it works just fine.

I have the setup for tomcat to not muck with the encoded /s (or \s)

org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true


@Path("/v1/device")
public class Device  {

    @GET
    @Path("/{esn}")
    @Consumes("application/xml")
    @Produces("application/xml")
    /* for error cases only */
    @Transactional(rollbackFor = {Throwable.class})
    public Response get(@Context HttpServletRequest request,
                        @PathParam("esn") String esn,
                        @MatrixParam("customerid") Long customerId) {
...

Am I doing something incorrectly?


--
View this message in context: http://cxf.547215.n5.nabble.com/No-root-resource-matching-request-path-with-two-encodes-s-tp3414412p3414412.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message