You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "qiu zhan bo (JIRA)" <ji...@apache.org> on 2011/07/26 17:43:11 UTC

[jira] [Created] (CXF-3689) path_info should not be contextPath + req.getPathInfo()

path_info should not be contextPath + req.getPathInfo()
-------------------------------------------------------

                 Key: CXF-3689
                 URL: https://issues.apache.org/jira/browse/CXF-3689
             Project: CXF
          Issue Type: Bug
          Components: Transports
    Affects Versions: 2.3.5
            Reporter: qiu zhan bo
            Priority: Minor


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.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CXF-3689) path_info should not be contextPath + req.getPathInfo()

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin resolved CXF-3689.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.5
                   2.4.2
                   2.3.6
         Assignee: Sergey Beryozkin

> path_info should not be contextPath + req.getPathInfo()
> -------------------------------------------------------
>
>                 Key: CXF-3689
>                 URL: https://issues.apache.org/jira/browse/CXF-3689
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.3.5
>            Reporter: qiu zhan bo
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>              Labels: api-change, patch
>             Fix For: 2.3.6, 2.4.2, 2.5
>
>         Attachments: patch.txt
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3689) path_info should not be contextPath + req.getPathInfo()

Posted by "qiu zhan bo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

qiu zhan bo updated CXF-3689:
-----------------------------

    Attachment: patch.txt

> path_info should not be contextPath + req.getPathInfo()
> -------------------------------------------------------
>
>                 Key: CXF-3689
>                 URL: https://issues.apache.org/jira/browse/CXF-3689
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.3.5
>            Reporter: qiu zhan bo
>            Priority: Minor
>              Labels: api-change, patch
>         Attachments: patch.txt
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira