tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45065] RequestDispatcher restricts access to ApplicationHttpRequest
Date Tue, 27 May 2008 20:09:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45065





--- Comment #5 from Mark Thomas <markt@apache.org>  2008-05-27 13:09:59 PST ---
It's amazing what a night's sleep does for you. The explanation is simple and
obvious - I should have seen it earlier.

o.a.c.connector.RequestFacade is public
o.a.c.core.ApplicationHttpRequest is not (ie package private)

There is no guarantee in the spec that the classes implementing any of the spec
classes, such as HttpServletRequest, will be public and therefore accessible
for the sort of manipulation via reflection that you are trying to do.

As I indicated earlier, to be sure of not seeing the error, you'll need to use
the appropriate spec class.

I appreciate that this makes generic reflection difficult. The users list is
usually pretty good at coming up with ways around issues like this. I suggest
you post a summary of what you are trying to achieve there and see what ideas
emerge.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message