I wonder if anyone can help me. I'm trying to use the Java filter in 
conjunction with Tomcat to filter all incoming requests to the web application 
I want to protect. In order to do so I have tried a number of different options 
in the web.xml file including...

<filter-mapping>
        <filter-name>Cosign Authentication Filter</filter-name>      
         <url-pattern>/*</url-pattern>
</filter-mapping>

Or...

<filter-mapping>
        <filter-name>Cosign Authentication Filter</filter-name>
        <servlet-name>Cocoon</servlet-name>
</filter-mapping>


But all attempts result in an java.lang.StringIndexOutOfBoundsException: String 
index out of range: -1 in 
edu.umich.auth.cosign.CosignAuthenticationFilter.doFilter(). Looking at the 
code it will always fail if there is no additional path after the context in 
the Url. 

I've been testing with the java filter version 2.0.0 but looking at version 3 
the code is the same.

Am I missing something or is it not possible to filter all requests with the 
Java filter ? Do you have to specify the url-paterns...

Eg. <url-pattern>/tobeprotected/*</url-pattern>


Thanks. Robin.
 

Robin Taylor
Main Library
University of Edinburgh
Tel. 0131 6513808 
-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Cosign-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cosign-discuss

Reply via email to