Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3741

WebService doesn't support "//"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • jbossws-cxf-4.3
    • jbossws-cxf-4.1.3
    • jbossws-cxf
    • None
    • Hide

      Create a Webservice in JBoss EAP 6.1 and request the wsdl by adding extra slash.

      Show
      Create a Webservice in JBoss EAP 6.1 and request the wsdl by adding extra slash.
    • Compatibility/Configuration

    Description

      The WebService part of Jboss eap 6 doesn't support double slash ('//') in URI (although JBoss 5 supports it and the Web connector also supports it).

      That's to say, those 3 urls should represent the same one :

      BUT only the first one is accepted by JBoss. The others raise that stack trace:

      javax.servlet.ServletException: JBWS024029: Cannot obtain destination for /ws//myWs
      org.jboss.wsf.stack.cxf.RequestHandlerImpl.findDestination(RequestHandlerImpl.java:170)
      org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:87)
      org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:156)
      org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
      org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:225)
      org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:150)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
      org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)
      org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      AND if I call the following URL, it works : http://localhost:8080/./ws/myWs?wsdl

      IMHO, the method org.jboss.wsf.stack.cxf.RequestHandlerImpl.findDestination should use a "canonical path" before testing the equality.

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            tszadel_jira Thomas Szadel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: