You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Immanuel, Gidado-Yisa" <av...@cdc.gov> on 2002/06/04 19:38:18 UTC
[PATCH] mods to ApplicationContext's getResourcePaths
Crossposting to watchdog-dev as this should be of interest
I've made some modifications to catalina.core.ApplicationContext
to fix a bug reported in bugzilla (don't have the number, bugzilla
is currently unreachable from here...search on ServletContext...has
to do with consecutive '//'). Also, these changes needed to pass a
new test that I recently submitted to watchdog-dev.
The changes are simply:
1. Return null if input path argument is null (currently, NPE thrown)
2. Return null if a NamingException occurs in looking up a path
(all the occurrances of NamingException [I've seen] report
the error: "resource not found") (current empty set is returned)
3. Change all occurrances of the pattern "/*" in the input path to "/"
These changes reflect my understanding of the doc for this method.
I send an earlier email on watchdog-dev asking for clarifications:
http://www.mail-archive.com/watchdog-dev%40jakarta.apache.org/msg00358.html
But since I did not receive anything feedback, I just went ahead
and coded to my understanding.
- Gidado