You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "J.W. Janssen (JIRA)" <ji...@apache.org> on 2013/08/14 12:16:49 UTC

[jira] [Resolved] (FELIX-3304) request forwarding doesn't work

     [ https://issues.apache.org/jira/browse/FELIX-3304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

J.W. Janssen resolved FELIX-3304.
---------------------------------

    Resolution: Duplicate

Closing this one as duplicate of FELIX-2774. Please follow that issue for future updates...
                
> request forwarding doesn't work
> -------------------------------
>
>                 Key: FELIX-3304
>                 URL: https://issues.apache.org/jira/browse/FELIX-3304
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http-2.2.0
>            Reporter: Martin Zdila
>            Priority: Critical
>
> In the servlet with alias /original/path the call request.getRequestDispatcher("/new/path").forward(request, response) is called.
> In ServletPipeline on line 85 the request is wrapped to RequestWrapper that overrides getRequestURI and returns URI of the request dispatcher. No other method is overriden and so every other call is forwarded to the original Request.
> Later a ServletHandler with alias /new/path is called and it tests if this alias matches against the wrapped request getPathInfo(). As mentioned in previous paragraph, this method has not been overriden and so the /original/path is returned causing matches() to return false.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira