Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3090

JAX-RS Trailing slashes required for first access

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.10
    • 2.2.12, 2.3.1, 2.4
    • JAX-RS
    • None
    • Running in tomcat via cargo

    Description

      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.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            pat.leamon Patrick Leamon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: