Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Francis GALIEGUE
On Wed, Sep 14, 2011 at 20:49, Mark Eggers its_toas...@yahoo.com wrote: [...] I've not tried this in Tomcat, but here's a thought. According to: http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Remote_Address_Filter Tomcat uses java.util.regex for pattern matching. This means

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Francis GALIEGUE
On Thu, Sep 15, 2011 at 10:06, Francis GALIEGUE f...@one2team.com wrote: On Wed, Sep 14, 2011 at 20:49, Mark Eggers its_toas...@yahoo.com wrote: [...] I've not tried this in Tomcat, but here's a thought. According to:

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Francis GALIEGUE
On Thu, Sep 15, 2011 at 10:26, Francis GALIEGUE f...@one2team.com wrote: [...] I have added 0:0:0:0:0:0:0:1 as an alternative instead of ::1 and it does work... Which makes me think: the documentation SHOULD specify that regexes in the allow and deny parameters of the valve are ANCHORED.

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread André Warnier
Francis GALIEGUE wrote: On Thu, Sep 15, 2011 at 10:06, Francis GALIEGUE f...@one2team.com wrote: On Wed, Sep 14, 2011 at 20:49, Mark Eggers its_toas...@yahoo.com wrote: [...] I've not tried this in Tomcat, but here's a thought. According to:

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Francis GALIEGUE
On Thu, Sep 15, 2011 at 14:25, André Warnier a...@ice-sa.com wrote: [...] OK, I've found the bug... I have added an access log valve and here is what I see in it: [15/Sep/2011:11:59:14 +0200] 0:0:0:0:0:0:0:1 (132 msec/964 bytes) 403 GET //manager/text/list HTTP/1.0 That explains it. So, I

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Konstantin Kolinko
2011/9/15 André Warnier a...@ice-sa.com: On the other hand, using a regexp provides for quite a bit of flexibility regarding ranges of addresses. You could use something like : (127\\.0\\.0\\.1)|((0?:0?:0?:0?:0?:0?)?:0?:1) Just 127\.0\.0\.1 It is XML - no need to double the slashes. Best

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread André Warnier
Francis GALIEGUE wrote: On Thu, Sep 15, 2011 at 14:25, André Warnier a...@ice-sa.com wrote: [...] OK, I've found the bug... I have added an access log valve and here is what I see in it: [15/Sep/2011:11:59:14 +0200] 0:0:0:0:0:0:0:1 (132 msec/964 bytes) 403 GET //manager/text/list HTTP/1.0

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Konstantin Kolinko
2011/9/15 André Warnier a...@ice-sa.com: Konstantin Kolinko wrote: 2011/9/15 André Warnier a...@ice-sa.com: On the other hand, using a regexp provides for quite a bit of flexibility regarding ranges of addresses. You could use something like : (127\\.0\\.0\\.1)|((0?:0?:0?:0?:0?:0?)?:0?:1)

tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-14 Thread Francis GALIEGUE
Hello, I have a base Tomcat install with only the manager webapp in it at startup (I deploy other webapps using it in text mode) but since I upgraded from 7.0.16 to 7.0.21, the manager no longer works with the RemoteAddrValve. The context.xml is: Context

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-14 Thread André Warnier
Francis GALIEGUE wrote: Hello, I have a base Tomcat install with only the manager webapp in it at startup (I deploy other webapps using it in text mode) but since I upgraded from 7.0.16 to 7.0.21, the manager no longer works with the RemoteAddrValve. The context.xml is: Context

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-14 Thread Francis GALIEGUE
On Wed, Sep 14, 2011 at 17:28, André Warnier a...@ice-sa.com wrote: Francis GALIEGUE wrote: [...]    Valve className=org.apache.catalina.valves.RemoteAddrValve        allow=127\.0\.0\.1|::1/ [...] Maybe try to modify that regexp somewhat, like to allow=(127\.0\.0\.1)|(::1) or

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-14 Thread Mark Eggers
- Original Message - From: Francis GALIEGUE f...@one2team.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Wednesday, September 14, 2011 8:42 AM Subject: Re: tomcat 7.0.21: bug in RemoteAddrValve? On Wed, Sep 14, 2011 at 17:28, André Warnier a...@ice-sa.com wrote

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-14 Thread André Warnier
Francis GALIEGUE wrote: On Wed, Sep 14, 2011 at 17:28, André Warnier a...@ice-sa.com wrote: Francis GALIEGUE wrote: [...] Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127\.0\.0\.1|::1/ [...] Maybe try to modify that regexp somewhat, like to

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-14 Thread André Warnier
Mark Eggers wrote: ... Try using 127\\.0\\.0\\.1|::1 and see if that fixes your problem. Of course ! I missed that one. I have no idea why it would work in previous versions (have not checked the change log). neither have I.