tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45065] RequestDispatcher restricts access to ApplicationHttpRequest
Date Tue, 27 May 2008 18:10:26 GMT

Paul Copeland <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #3 from Paul Copeland <>  2008-05-27 11:10:26 PST ---
I found a workaround that does not use reflection in this part of the

The suggested solution requires that you already know the class implements the
HttpServletRequest interface, in which case there is no point in using
reflection to invoke the method. The example code was just to demonstrate the
problem with the simplest case - the problem occurred in a generic reflection
routine. Theoretically you might be able to check all the interfaces
implemented and find one that allows you to invoke the target method. In
practice that might be a performance issue.

Just some guesses - Is the wrapper attempting to handle the case of forwarding
to another context which is optionally allowed if the container supports it? 
Hopefully this problem does not occur in filter chains but I have not tried

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message