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: Open
Resolution: None
Priority: 5
Submitted By: James Manning (jmm)
Assigned to: Nobody/Anonymous (nobody)
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: 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: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to