Bugs item #644287, was opened at 2002-11-26 19:05 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=644287&group_id=22866
Category: JBossWeb Group: v3.0 Rabbit Hole >Status: Pending Resolution: None Priority: 5 Submitted By: James Manning (jmm) >Assigned to: Jules Gosnell (jules_gosnell) Summary: in a Filter, getServletPath() empty Initial Comment: using the servlet 2.3 API, in a defined filter (extends HttpServlet implements Filter), inside method public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) HttpServletRequest httpServletRequest = (HttpServletRequest)request; String current_file = httpServletRequest.getServletPath(); This works great under Tomcat 4.x but returns an empty string (not null, just empty) in jboss 3.0.4 Trying to put together the minimal webapp to show the bug now. Wanted to go ahead and get the bug posted just in case it's known or something ---------------------------------------------------------------------- >Comment By: Jules Gosnell (jules_gosnell) Date: 2003-01-15 10:29 Message: Logged In: YES user_id=49106 Greg is asking for clarification from the RFC ---------------------------------------------------------------------- Comment By: Greg Wilkins (gregwilkins) Date: 2003-01-04 14:01 Message: Logged In: YES user_id=44062 Your filter is mapped to /* and you have no servlets. The servlet spec says for getServletPath: The path section that directly corresponds to the mapping which activated this request. This path starts with a / character except in the case where the request is matched with the /* pattern, in which case it is the empty string. So I think we are correct to return the empty string. ---------------------------------------------------------------------- Comment By: Greg Wilkins (gregwilkins) Date: 2003-01-04 13:40 Message: Logged In: YES user_id=44062 Can you attach the source code of your example please. ---------------------------------------------------------------------- Comment By: James Manning (jmm) Date: 2002-11-26 21:09 Message: Logged In: YES user_id=11485 in case it helps, adding another check for getRequestURI shows: (under Tomcat 4.x) 10095 [HttpProcessor[8000][3]] INFO TestFilter - *** getServletPath gives /foo/bar/ack 10095 [HttpProcessor[8000][3]] INFO TestFilter - *** getRequestURI gives /filter/foo/bar/ack under jboss 3.0.4 16:09:28,870 INFO [TestFilter] *** getServletPath gives 16:09:28,870 INFO [TestFilter] *** getRequestURI gives /filter/foo/bar/ack Both are being hit by IE with a url of http://127.0.0.1:8080/filter/foo/bar/ack (port number changed to point to each one) ---------------------------------------------------------------------- Comment By: James Manning (jmm) Date: 2002-11-26 20:13 Message: Logged In: YES user_id=11485 on Tomcat 4.x 0 [HttpProcessor[8000][3]] INFO TestFilter - *** getServletPath gives /foo/bar/ack So this appears (afaict) to be a jboss breakage ---------------------------------------------------------------------- Comment By: James Manning (jmm) Date: 2002-11-26 20:02 Message: Logged In: YES user_id=11485 this is the minimal test-case AFAICT. logging shows: 15:02:14,709 INFO [TestFilter] *** getServletPath gives ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=644287&group_id=22866 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
