tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Martinez <jmart...@gmail.com>
Subject Re: IP based request filters for admin/manager
Date Mon, 19 Jul 2010 03:48:51 GMT
Started afresh and got it working finally.

 I tried with and without escape character and both worked.

Thanks,
jM.


On Sun, Jul 18, 2010 at 1:09 PM, Konstantin Kolinko
<knst.kolinko@gmail.com>wrote:

> 2010/7/18 Shantanu Pavgi <pavgi@uab.edu>:
> >
> > I don't have a solution, but just wanted to comment that examples in the
> doc are correct.
> > See API doc:
> http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/valves/RequestFilterValve.html#allow
> > The 'allow' field uses String expression and 'allows' uses Java Regex
> package.
> >
>
> It is the same value. "allows" is created from "allow", by splitting
> the value at commas and converting each one into a regex.
>
>  There is setAllow(..), but there is no setAllows(...) setter method.
>
>
> http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/catalina/src/share/org/apache/catalina/valves/RequestFilterValve.java?view=markup
>
>
> 143      public void setAllow(String allow) {
> 145     this.allow = allow;
> 146     allows = precalculate(allow);
> 148     }
>
> 218      protected Pattern[] precalculate(String list) {
> (...)
> 232      String pattern = list.substring(0, comma).trim();
> 234      reList.add(Pattern.compile(pattern));
>
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message