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

path_info should not be contextPath + req.getPathInfo()

    XMLWordPrintableJSON

Details

    • Novice

    Description

      when i extends CXFServlet to dispacth request by http header Content-Type,i found that in AbstractHTTPDestination#setupMessage
      inMessage.put(Message.REQUEST_URI, req.getRequestURI());
      inMessage.put(Message.PATH_INFO, contextPath + req.getPathInfo());

      the two statements above ,the first put Message.REQUEST_URI into inMessage ,and the second put Message.PATH_INFO into inMessage,if my request url is http://localhost:8080/cxf/ws/rest1/roomservice/room/12 and
      org.apache.cxf.request.uri=/cxf/ws/rest1/roomservice/room/12,
      org.apache.cxf.message.Message.PATH_INFO=/cxf/rest1/roomservice/room/12
      and servletPath is missing.

      Attachments

        1. patch.txt
          1 kB
          bohr.qiu

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            qiuboboy bohr.qiu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: