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 2015/10/23 04:34:58 UTC

[Bug 58523] New: servlet filter not working over virtual directories in tomcat

https://bz.apache.org/bugzilla/show_bug.cgi?id=58523

            Bug ID: 58523
           Summary: servlet filter not working over virtual directories in
                    tomcat
           Product: Tomcat 8
           Version: 8.0.15
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: pradyutb@gmail.com

Hi,

I had configured virtual directories in glassfish3.x over which I could write
filters.

For an example I could access files at c:/web from http://localhost/TestApp/web
over which I could also place a filter at my web app's web/xml file with

<filter-mapping>
    <filter-name>dir_filter</filter-name>
    <url-pattern>/web/*</url-pattern>
</filter-mapping>

Unfortunately Tomcat 8.0 is not allowing me to write a filter above that. It
simply ignores the filters and shows the content in the web directory.

The problem is anybody can access all of the files in the "web" folder.

Any how can we place filter over the virtual directories.

FYI - i have made the web app named "TestApp" and the virtual config is located
at "$tomcat_dir/conf/Catalina/localhost" directory with the file name
"TestApp#web.xml" file and having the content

<?xml version='1.0' encoding='utf-8'?> 
<Context docBase="C:/web" debug="0" privileged="true"></Context>

The question is also at stackoverflow -
http://stackoverflow.com/questions/33290483/servlet-filter-not-working-over-virtual-directories-in-tomcat

Regards
Praddy, India

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


[Bug 58523] servlet filter not working over virtual directories in tomcat

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

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

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

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
User error. Explanation to follow on duplicate question on users list.

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