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

Carsten Ziegeler commented on FELIX-6731:
-----------------------------------------

True, a potential solution would be to overwrite getRequestDispatcher in the 
webconsole request wrapper. There the incoming path could be checked if it is 
prefixed with the http context path of the webconsole - if it is, the prefix is 
removed.

But as said, this is a rare use case and the mentioned Sling webconsole plugin 
could use a different approach all together

> Forwarding requests with RequestDispatcher in plugins is broken
> ---------------------------------------------------------------
>
>                 Key: FELIX-6731
>                 URL: https://issues.apache.org/jira/browse/FELIX-6731
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-4.9.0
>            Reporter: Oliver Lietz
>            Priority: Major
>
> Forwarding requests results in {{404 Not Found}}.
> {noformat}
> GetHttpServletRequestWrapper wrapper = new 
> GetHttpServletRequestWrapper(request);
> request.getRequestDispatcher(request.getRequestURI()).forward(wrapper, 
> response);
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to