You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2011/02/22 17:23:38 UTC

[jira] Created: (CXF-3357) ServletController can not handle more than one endpoint sharing the same servlet path

ServletController can not handle more than one endpoint sharing the same servlet path
-------------------------------------------------------------------------------------

                 Key: CXF-3357
                 URL: https://issues.apache.org/jira/browse/CXF-3357
             Project: CXF
          Issue Type: Bug
          Components: Transports
    Affects Versions: 2.3.2
            Reporter: Sergey Beryozkin
            Assignee: Sergey Beryozkin
             Fix For: 2.4


ServletController and its updateDests method causes problems with the basic deployment, where we have at least 2 endpoints, say with "/1" and "/2" addresses and a single CXFServlet (ex, with the uri pattern "/services/*").



If the first URI is http://localhost:8080/services/1 then the subsequent request to http://localhost:8080/services/2 fails because updateDests has the lastBase (http://localhost:8080/services) matching the current one and thus the correct destination does not have its address overridden.

Overriding addresses is an issue on its own but at the very least the ServletController should not override *all* the destinations but only the one which will handle the current request.


The OSGI controller actually does not even has this lastBase optimization and minimizing the number of the overrides will compensate. 

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

        

[jira] Resolved: (CXF-3357) ServletController can not handle more than one endpoint sharing the same servlet path

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

Sergey Beryozkin resolved CXF-3357.
-----------------------------------

    Resolution: Fixed

I won't merge to 2.3.3 - I think this merge is really safe but just in case :-)

> ServletController can not handle more than one endpoint sharing the same servlet path
> -------------------------------------------------------------------------------------
>
>                 Key: CXF-3357
>                 URL: https://issues.apache.org/jira/browse/CXF-3357
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.3.2
>            Reporter: Sergey Beryozkin
>            Assignee: Sergey Beryozkin
>             Fix For: 2.4
>
>
> ServletController and its updateDests method causes problems with the basic deployment, where we have at least 2 endpoints, say with "/1" and "/2" addresses and a single CXFServlet (ex, with the uri pattern "/services/*").
> If the first URI is http://localhost:8080/services/1 then the subsequent request to http://localhost:8080/services/2 fails because updateDests has the lastBase (http://localhost:8080/services) matching the current one and thus the correct destination does not have its address overridden.
> Overriding addresses is an issue on its own but at the very least the ServletController should not override *all* the destinations but only the one which will handle the current request.
> The OSGI controller actually does not even has this lastBase optimization and minimizing the number of the overrides will compensate. 

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