felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Zdila (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-3304) request forwarding doesn't work
Date Fri, 13 Jan 2012 10:11:39 GMT

    [ https://issues.apache.org/jira/browse/FELIX-3304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185531#comment-13185531

Martin Zdila commented on FELIX-3304:

hmm ... it seems to be duplicate of FELIX-2774
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message