You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/01/25 17:46:34 UTC

DO NOT REPLY [Bug 48608] New: welcome-file ignores filter mapping

https://issues.apache.org/bugzilla/show_bug.cgi?id=48608

           Summary: welcome-file ignores filter mapping
           Product: Tomcat 6
           Version: 6.0.20
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: manuel@makumba.org


basically this is the same as bug 47378, but for filter mappings.

when a filter mapping should match a file defined as welcome-file entry, it is
ignored when the request URL is a directory.

example:

<filter-mapping>
  <filter-name>myFilter</filter-name>
  <url-pattern>*.jsp</url-pattern>
</filter-mapping>

<welcome-file-list>
  <welcome-file>index.jsp</welcome-file>
</welcome-file-list>


a call to http://myDomain/myApp/ will run (or try to run) the JSP without
filter

a call to http://myDomain/myApp/index.jsp will run the filter


thanks,

Manuel

-- 
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


DO NOT REPLY [Bug 48608] welcome-file ignores filter mapping

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48608

--- Comment #2 from Manuel <ma...@makumba.org> 2010-01-25 13:41:54 UTC ---
(In reply to comment #1)
> <dispatcher>REQUEST</dispatcher>
> <dispatcher>FORWARD</dispatcher>

I just tried this out, and I'm afraid it doesn't cut it. I also tried INCLUDE
just for the heck of it, but without success.

> I can actually see this as being a somewhat murky area in the spec...

I agree, it could be a bit more specific.

-- 
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


DO NOT REPLY [Bug 48608] welcome-file ignores filter mapping

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48608

--- Comment #1 from Kris Schneider <ks...@gmail.com> 2010-01-25 09:29:24 UTC ---
Since it doesn't appear that a redirect is being used, there are two other
allowed options for handling welcome files: a forward or "...a container
specific mechanism that is indistinguishable from a direct request." So, what
happens if you add the following to your <filter-mapping>?

<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>

I can actually see this as being a somewhat murky area in the spec...

-- 
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


DO NOT REPLY [Bug 48608] welcome-file ignores filter mapping

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48608

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #3 from Mark Thomas <ma...@apache.org> 2010-02-16 16:07:13 UTC ---
This works for me with the latest 6.0.x code base. I don't recall anything post
6.0.24 that would have fixed this so it was probably covered in the many fixes
in 6.0.24.

-- 
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