cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Leamon (JIRA)" <>
Subject [jira] Created: (CXF-3090) JAX-RS Trailing slashes required for first access
Date Mon, 25 Oct 2010 01:02:20 GMT
JAX-RS Trailing slashes required for first access

                 Key: CXF-3090
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.2.10
         Environment: Running in tomcat via cargo
            Reporter: Patrick Leamon

I have a CXFServlet configured with a url pattern of /service/*
In my beans definition I have a  <jaxrs:server address="/description">...
The service bean mapped to this has no @Path annotation, just a method with an @GET.

This leads to some odd behaviour.  If the first attempt to access the servlet goes to the
url "/service/description", a 404 is returned.  If a trailing slash is added so the url becomes
"/service/description/", the service works fine.  Once any access to the servlet has matched
a url correctly, then "/service/description" (no trailing slash) works fine.

It would be great if this could be accessed consistently.  Either require a traliing slash
or allow the request without it.  Preferably the latter.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message