Re: Error matching patterns problem
Torgeir Veimo <[email protected]> 25 Feb 2003 11:31:47 +0000
| Newsgroups | gmane.comp.java.securityfilter.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2003-02-25 at 11:29, Max Cooper wrote: > Uh, yes, it, um, throws a NPE if it encounters a null url from the container > (no, it doesn't check). It does seem like that might be the problem here, I > am just surprised it gets a null as a request URL. Should a null match > everything or nothing? Well, better safe than sorry. I guess the null only comes when the container is initializing the webapp, due to some strange reason. It should probably deny by default, whenever an internal error occur, or on unexpected input. > > -Max > > ----- Original Message ----- > From: "Torgeir Veimo" <[email protected]> > To: "securityfilter" <securityfilter-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> > Sent: Tuesday, February 25, 2003 2:09 AM > Subject: Re: [securityfilter-user] Error matching patterns problem > > > > On Tue, 2003-02-25 at 06:10, Max Cooper wrote: > > > Alexander, > > > > > > It seems to occur in the Perl5Matcher.matches() method from the > Jakarta-ORO > > > regular expression library when it tries to match the form-login-page or > > > form-error-page patterns. Your login and error page patterns look fine > to > > > me, so I am not sure what is going wrong. > > > > > > I'm trying securityfilter 1.0 with tomcat 4.0.4 (under netbeans > 3.4.1), > > > > with Struts 1.1b3 > > > > > > > > I get this error when starting the webapp: > > > > > > > > ===================================================== > > > > > > > > javax.servlet.ServletException: Error matching patterns > > > > at > > > > .... > > > > > > > > root cause > > > > > > > > java.lang.NullPointerException > > > > at > > > > org.securityfilter.filter.URLPatternMatcher.match(URLPatternMatcher.java:89) > > > > at > > > > Does the match algorithm check to see if the input it gets from the > > servlet container is non-null? > > > > -- > > Torgeir Veimo <[email protected]> > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > securityfilter-user mailing list > > securityfilter-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > > https://lists.sourceforge.net/lists/listinfo/securityfilter-user > > -- Torgeir Veimo <[email protected]> ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf