DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9629>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9629 Fix ServletContext.getResourcePaths to match spec ------- Additional Comments From [EMAIL PROTECTED] 2002-06-05 18:21 ------- Right, there is no specification for normalization, but this is what tomcat does now: 1. input: /WEB-INF//lib 2. normalize to: /WEb-INF//lib/ (craig's patch) 3. normalize to: /WEB-INF/lib/ (done by javax.naming.directory. DirResources.listBindings()) 4. get sub paths: Set 5a. return: /WEB-INF//lib/ + Set (non-normalized, current implementation) 5b. norm-return: /WEB-INF/lib/ + Set (normalize) It seems to me that if we're going with the non-normalized return (5a), then we should match (exactly) on the non-normalized path in (2), in which case, the method would return null for the a path like '//WEB-INF'. However, if we're using the normalized path in (3) (which is the current implementation), then we should use the normalized result in (5b). The current strategy (in my opinion) is inconsistent, in that we normalize to match, but don't normalize on output. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>