Re: Unexpected behavior of filters

2024-04-16 Thread Konstantin Kolinko
вт, 16 апр. 2024 г. в 22:42, Christopher Schultz : > > [...] > > 2. Abort this stupid idea and do something else URLs that end with ".do" always remind me about this old page: https://www.w3.org/Provider/Style/URI Cool URIs don't change (c)1998 Tim BL Though you might have already seen it. Best

Re: Unexpected behavior of filters

2024-04-16 Thread Christopher Schultz
this isn't a really common thing for us to do. So I have these two filters: cookieUserFilter ... cookieParameterFilter ... cookieParameterFilter *.xml.do /some/specific/pattern cookieUserFilter *.do *.jsp I have tested that both Filters w

Re: Unexpected behavior of filters

2024-04-16 Thread Konstantin Kolinko
nce this isn't a really common thing for us to do. > > So I have these two filters: > > >cookieUserFilter >... > > > >cookieParameterFilter >... > > > >cookieParameterFilter >*.xml.do >/some/specific/pattern >

Unexpected behavior of filters

2024-04-16 Thread Christopher Schultz
es request parameters and returns them from request.getCookies() but only for a small number of URL patterns which we handle only internally, both for security (?) and also for performance, since this isn't a really common thing for us to do. So I have these two filters: c

Re: what is the exact order of filters?

2021-01-18 Thread Johan Compagner
> You need to read section 8.2.3 of the servlet specificaiton > > > If the order in which the listeners, servlets, filters are invoked is > important to an application then a deployment descriptor must be used. > Also, if necessary, the ordering element defined above can be us

Re: what is the exact order of filters?

2021-01-17 Thread Mark Thomas
On 15/01/2021 16:00, Johan Compagner wrote: > Hi > here we have a case: 51754 – Tomcat7 filters from conf/web.xml are applied > after filters defined in WEB-INF/web.xml (apache.org) > <https://bz.apache.org/bugzilla/show_bug.cgi?id=51754> > > that already says that the con

what is the exact order of filters?

2021-01-15 Thread Johan Compagner
Hi here we have a case: 51754 – Tomcat7 filters from conf/web.xml are applied after filters defined in WEB-INF/web.xml (apache.org) <https://bz.apache.org/bugzilla/show_bug.cgi?id=51754> that already says that the conf/web.xml are later then WEB-INF/web.xml is it so that the order is som

Re: Expect: 100-continue with filters vs valves

2020-02-21 Thread Mark Thomas
On 19/02/2020 20:17, Michael Osipov wrote: > Am 2020-02-18 um 23:43 schrieb Mark Thomas: >> On 18/02/2020 19:47, Michael Osipov wrote: >>> If you say this is also a limitation in the Servlet API, it is worth to >>> raise that as a clarification point? >> >> Sure. It won't happen until at least S

Re: Expect: 100-continue with filters vs valves

2020-02-19 Thread Michael Osipov
collection). That means it happens after any Engine/Host/Context Valves you have configured but before any Filters. This enhancement request would help: https://bz.apache.org/bugzilla/show_bug.cgi?id=57661 but it would need to be made optional as it will add a delay to the request processing in so

Re: Expect: 100-continue with filters vs valves

2020-02-18 Thread Mark Thomas
has to provide the "100 Continue" response >> since there isn't a Servlet API for the app to do so. It does this as >> the final act in the Context's pipeline (valve collection). That means >> it happens after any Engine/Host/Context Valves you have configu

Re: Expect: 100-continue with filters vs valves

2020-02-18 Thread Michael Osipov
/Host/Context Valves you have configured but before any Filters. This enhancement request would help: https://bz.apache.org/bugzilla/show_bug.cgi?id=57661 but it would need to be made optional as it will add a delay to the request processing in some circumstances. Now this makes sense. This bas

Re: Expect: 100-continue with filters vs valves

2020-02-18 Thread Mark Thomas
as the Filter is less efficient. It ends up sending the body twice. The answer is that Tomcat has to provide the "100 Continue" response since there isn't a Servlet API for the app to do so. It does this as the final act in the Context's pipeline (valve collection). That

Re: Expect: 100-continue with filters vs valves

2020-02-18 Thread Michael Osipov
Am 2020-02-18 um 10:00 schrieb Mark Thomas: On 17/02/2020 20:17, Michael Osipov wrote: I have continued some tests on 8.5.51 with PUT requests and Expect: 100 continue header from HttpClient 5.0. I have noticed that the very same code code fragment What code fragment? My bad, here it is: F

Re: Expect: 100-continue with filters vs valves

2020-02-18 Thread Mark Thomas
On 17/02/2020 20:17, Michael Osipov wrote: > I have continued some tests on 8.5.51 with PUT requests and Expect: 100 > continue header from HttpClient 5.0. > > I have noticed that the very same code code fragment What code fragment? > kicks in in the > expect header evaluation when run as valve

Expect: 100-continue with filters vs valves

2020-02-17 Thread Michael Osipov
I have continued some tests on 8.5.51 with PUT requests and Expect: 100 continue header from HttpClient 5.0. I have noticed that the very same code code fragment kicks in in the expect header evaluation when run as valve, but completely ignored when run in a filter. Tomcat will simply signal t

Re: Reg : Parameter Filters

2019-09-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Praveen, On 9/6/19 06:25, praveen kumar wrote: > Thanks for quick response and information. Christopher I tried the > first option you mentioned from the following reference and tried > to redirect to an customized error page instead of letting the

Re: Reg : Parameter Filters

2019-09-06 Thread praveen kumar
Thanks for quick response and information. Christopher I tried the first option you mentioned from the following reference and tried to redirect to an customized error page instead of letting the geoserver application spit the exception. But may be I missed something in implementation that did not

Re: Reg : Parameter Filters

2019-09-06 Thread tomcat
On 05.09.2019 20:58, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Praveen, On 9/5/19 05:07, praveen kumar wrote: Hello, I am working with an application called geoserver which works on Apache Tomcat server. Just for an idea for those who donot know, geoserver is a

Re: Reg : Parameter Filters

2019-09-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Praveen, On 9/5/19 05:07, praveen kumar wrote: > Hello, I am working with an application called geoserver which > works on Apache Tomcat server. Just for an idea for those who donot > know, geoserver is an application that serves web map services. >

Reg : Parameter Filters

2019-09-05 Thread praveen kumar
Hello, I am working with an application called geoserver which works on Apache Tomcat server. Just for an idea for those who donot know, geoserver is an application that serves web map services. When I am calling this service I will be providing a few parameters about the map like layer name, heigh

Re: Filters: How to programmatically find out their order in hindsight?

2016-04-07 Thread Burkhard Graves
mmatically find out the order in which the filters are >> applied/registered? >> >> I know the specs ... >> >>> The order the container uses in building the chain of filters to be >>> applied for a particular request URI is as follows: >>> >>

Re: Filters: How to programmatically find out their order in hindsight?

2016-04-07 Thread Martin Holz (for Usenet)
Am 04/06/2016 um 10:15 PM schrieb Burkhard Graves: ServletContext#getFilterRegistrations() returns an unordered map only - how to programmatically find out the order in which the filters are applied/registered? I know the specs ... The order the container uses in building the chain of filters

Filters: How to programmatically find out their order in hindsight?

2016-04-06 Thread Burkhard Graves
Hello tomcat users, ServletContext#getFilterRegistrations() returns an unordered map only - how to programmatically find out the order in which the filters are applied/registered? I know the specs ... > The order the container uses in building the chain of filters to be applied >

Re: Setting up filters

2016-03-31 Thread Rahulkumar Godse
On 3/31/16, 2:43 PM, "Rahulkumar Godse" wrote: >Hi, > >Tomcat version: >apache-tomcat-8.0.28 > >Issue: >I am trying to open an external url in an iframe in our application. The >external url has X-FRAME-OPTIONS set to DENY in their jsp code which I am &g

Setting up filters

2016-03-31 Thread Rahulkumar Godse
Hi, Tomcat version: apache-tomcat-8.0.28 Issue: I am trying to open an external url in an iframe in our application. The external url has X-FRAME-OPTIONS set to DENY in their jsp code which I am trying to override using filters in web.xml Here’s the code where I added the filters in web.xml

Re: Can filters be loaded more than once?

2015-08-30 Thread David Wall
topher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 8/28/15 2:47 PM, David Wall wrote: I'm using Tomcat 8.0.23, but wondered if a filter defined in the Tomcat conf/web.xml as well as defined in my app's WEB-INF/web.xml file causes the filter to be loaded twice or

Re: Can filters be loaded more than once?

2015-08-28 Thread Christopher Schultz
r whether duplicate > filters are ignored? > > If duplicates are ignored, what makes it a "duplicate"? Just the > name, the filter-name and url-pattern combo? The filter-class? I've never looked into this, but I would imagine that Tomcat does no checking for dupl

Can filters be loaded more than once?

2015-08-28 Thread David Wall
I'm using Tomcat 8.0.23, but wondered if a filter defined in the Tomcat conf/web.xml as well as defined in my app's WEB-INF/web.xml file causes the filter to be loaded twice or whether duplicate filters are ignored? If duplicates are ignored, what makes it a "duplicate"?

Re: How to use Jar Scan Filters

2015-03-31 Thread Thusitha Thilina Dayaratne
Hi All, >I'm using embedded tomcat as an OSGi bundle. In tomcat 7.0.59 we extended the StandardJarScanner to scan some jars which are resides in a custom location. Since these jars are needed for all the applications putting them >in WEB-INF is not applicable, >We are now trying to use Tomcat 8.0.

How to use Jar Scan Filters

2015-03-25 Thread Thusitha Thilina Dayaratne
Hi, I'm using embedded tomcat as an OSGi bundle. In tomcat 7.0.59 we extended the StandardJarScanner to scan some jars which are resides in a custom location. Since these jars are needed for all the applications putting them in WEB-INF is not applicable, We are now trying to use Tomcat 8.0.20 with

Re: Tomcat form auth not using filters

2013-04-09 Thread Sergio Vieira Rolanski
form auth not using filters Hi, Thank you, I will test this later. I'm using a threadlocal to open session/transaction, does that forwarded request happens in the same thread as the original request? Sergio - Mensagem original - De: "Christopher Schultz" Para: "Tom

Re: Tomcat form auth not using filters

2013-04-09 Thread Sergio Vieira Rolanski
adas: Segunda-feira, 8 de Abril de 2013 18:19:11 Assunto: Re: Tomcat form auth not using filters -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Konstantin, On 4/8/13 4:58 PM, Konstantin Kolinko wrote: > 2013/4/9 Sergio Vieira Rolanski : >> Thansk for the reply, >> >> Let m

Re: Tomcat form auth not using filters

2013-04-08 Thread Christopher Schultz
my >> HibernateFilter is not called at all. >> >> I made a request for lets say >> "http://localhost:8084/MyApplication/billing/BillingHistory.xhtml"; >> and I'm not logged in, tomcat should show me the login page, >> right? But it seems that

Re: Tomcat form auth not using filters

2013-04-08 Thread Konstantin Kolinko
d in, tomcat should show me the login page, right? But it seems that > to get the appropriate response for the request (the login page instead of > the BillingHistory.xhtml) tomcat/servlet/whatever is taking another path and > ignoring my servlet filters thus not opening the hibernate s

Re: Tomcat form auth not using filters

2013-04-08 Thread Sergio Vieira Rolanski
stead of the BillingHistory.xhtml) tomcat/servlet/whatever is taking another path and ignoring my servlet filters thus not opening the hibernate session and giving me exception instead of the login page. javax.faces.view.facelets.TagAttributeException: /popups/BuscaUsuario.xhtml @

Re: Tomcat form auth not using filters

2013-04-08 Thread Konstantin Kolinko
eption as root cause saying that there is no session > open, that means the request is ignoring my HibernateFilter (among other > important filters) which opens the session and transaction for the current > request resulting in an error. A hibernate session and a servlet session are two

Tomcat form auth not using filters

2013-04-08 Thread Sergio Vieira Rolanski
ad of the request page. I get an Hibernate exception as root cause saying that there is no session open, that means the request is ignoring my HibernateFilter (among other important filters) which opens the session and transaction for the current request resulting in an error. Any ideas how do

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-27 Thread Ivan Polak
On 27 August 2012 22:13, Konstantin Kolinko wrote: > 2012/8/27 Ivan Polak : >> On 26 August 2012 23:05, Konstantin Kolinko wrote: >>> 2012/8/27 Ivan Polak : I have found, where is the problem. problem is in StandardContextValve.java in @Override public final void

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-27 Thread Konstantin Kolinko
2012/8/27 Ivan Polak : > On 26 August 2012 23:05, Konstantin Kolinko wrote: >> 2012/8/27 Ivan Polak : >>> I have found, where is the problem. >>> >>> problem is in StandardContextValve.java in >>> >>> @Override >>> public final void invoke(Request request, Response response) >>> throws

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivan, On 8/27/12 11:33 AM, Ivan Polak wrote: > Dne 27.8.2012 17:27 "Christopher Schultz" > napsal(a): >> >> Is there any reason you are using 7.0.ancient instead of >> 7.0.latest? How about trying 7.0.29? > > I am using tomcat 7.0.29 and problem is

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-27 Thread Ivan Polak
Dne 27.8.2012 17:27 "Christopher Schultz" napsal(a): > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ivan, > > On 8/26/12 7:00 PM, Ivan Polak wrote: > > in Tomcat 7.0.14 (where everything is OK) is not null. > > Is there any reason you are using 7.0.ancient instead of 7.0.latest? > How abo

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivan, On 8/26/12 7:00 PM, Ivan Polak wrote: > in Tomcat 7.0.14 (where everything is OK) is not null. Is there any reason you are using 7.0.ancient instead of 7.0.latest? How about trying 7.0.29? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-26 Thread Ivan Polak
On 26 August 2012 23:05, Konstantin Kolinko wrote: > 2012/8/27 Ivan Polak : >> I have found, where is the problem. >> >> problem is in StandardContextValve.java in >> >> @Override >> public final void invoke(Request request, Response response) >> throws IOException, ServletException {

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-26 Thread Konstantin Kolinko
2012/8/27 Ivan Polak : > I have found, where is the problem. > > problem is in StandardContextValve.java in > > @Override > public final void invoke(Request request, Response response) > throws IOException, ServletException { > > > > // Select the Wrapper to be used for this Reques

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-26 Thread Ivan Polak
, which is 'direct' link >> to Spring MVC controller, createFilterChain method was called. >> > > I cannot reproduce. Using current 7.0.x (dev), UrlRewriteFilter 4.0.3 > and similar configuration with three filters. > >> and when I click in web browser on lin

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-26 Thread Konstantin Kolinko
other link, which is served > by UrlRewrite filter, this method was not called, why ? > > and when I click in web browser on link > http://localhost:8080/app/user/settings.html, which is 'direct' link > to Spring MVC controller, createFilterChain method was called. > I

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-26 Thread Ivan Polak
luploadServlet > > /upload > > > > > > > > 30 > > > > > > > > > > > > . > > > > > > thanks > > > > Ivan > > > > On 25 August 2012 16:34, Konstantin Kolinko wro

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-26 Thread Konstantin Kolinko
m with URLRewriteFilter. I am using URLRewriteFilter version >>> 4.0.5. The latest released version is 4.0.3. >>> >>> In tomcat 6.0.16 everything is OK, >>> >>> URLRewriteFilter has status information page on >>> http://localhost:8080/app/rewrite-status/, with Tomcat 6.0.16 is O

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-25 Thread Ivan Polak
(the same messages as >> with tomcat 6.0.16), so the filter is started correctly. >> >> INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: about to parse >> conf 24.8.2012 20:09:56 org.apache.catalina.core.ApplicationContext >> log >> INFO: org.tuckey.web.f

Re: problem with filters on Tomcat 7.0.16 and above

2012-08-25 Thread Konstantin Kolinko
org.apache.catalina.core.ApplicationContext > log > INFO: org.tuckey.web.filters.urlrewrite.ConfHandler > DEBUG: Resolving to DTD > /org/tuckey/web/filters/urlrewrite/dtds/urlrewrite4.0.dtd 24.8.2012 > 20:09:56 org.apache.catalina.core.ApplicationContext log > INFO: org.tuckey

problem with filters on Tomcat 7.0.16 and above

2012-08-25 Thread Ivan Polak
tomcat 6.0.16), so the filter is started correctly. INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: about to parse conf 24.8.2012 20:09:56 org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.ConfHandler DEBUG: Resolving to DTD /org/tuckey/web/filters

Re: tomcat filters

2012-07-05 Thread Pid *
On 5 Jul 2012, at 01:51, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Pid, > > On 7/2/12 6:15 PM, Pid wrote: >> On 02/07/2012 18:34, Varrun Ramani wrote: >>> Hi >>> >>> I am in the process developing a web application firewall(WAF) >>> for tomcat similar to wha

Re: tomcat filters

2012-07-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 7/2/12 6:15 PM, Pid wrote: > On 02/07/2012 18:34, Varrun Ramani wrote: >> Hi >> >> I am in the process developing a web application firewall(WAF) >> for tomcat similar to what mod security does, and am planning to >> use the filter API alread

Re: tomcat filters

2012-07-02 Thread Pid
On 02/07/2012 18:34, Varrun Ramani wrote: > Hi > > I am in the process developing a web application firewall(WAF) for > tomcat similar to what mod security does, and am planning to use the > filter API already present in tomcat to intercept requests and do the > filtering. Are there any existing e

Re: Tomcat 6.0.35 filters not invoked for error-pages

2012-04-24 Thread Ludwig Magnusson
That was it. Thanks =) -- From: Konstantin Kolinko Sent: Tuesday, April 24, 2012 7:08 PM To: Tomcat Users List Subject: Re: Tomcat 6.0.35 filters not invoked for error-pages 2012/4/24 Ludwig Magnusson : Thanks for your reply. First of all: I have solved the acutal problem caused

Re: Tomcat 6.0.35 filters not invoked for error-pages

2012-04-24 Thread Konstantin Kolinko
2012/4/24 Ludwig Magnusson : > Thanks for your reply. > > First of all: I have solved the acutal problem caused by this in a more > stable way. > > But out of curiosity I tried your solution and it does not work either. > this is my setup: > > >   myservlet >   mypackage.MyServlet > > > >   myse

Re: Tomcat 6.0.35 filters not invoked for error-pages

2012-04-24 Thread Ludwig Magnusson
REQUEST FORWARD /Ludwig -Ursprungligt meddelande- From: Christopher Schultz Sent: Monday, April 23, 2012 4:05 PM To: Tomcat Users List Subject: Re: Tomcat 6.0.35 filters not invoked for error-pages -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ludwig, On 4/22/12 2:26 PM, Ludwig

Re: Tomcat 6.0.35 filters not invoked for error-pages

2012-04-23 Thread Christopher Schultz
n > , the filters that would have been invoked for that > location are actually not invoked. > > I found an almost identical report in the bug database: > https://issues.apache.org/bugzilla/show_bug.cgi?id=49098 (the user > had the same problem when using query strings in ). &g

Tomcat 6.0.35 filters not invoked for error-pages

2012-04-22 Thread Ludwig Magnusson
Hello. I found some strange behavour in tomcat 6.0.35 when declaring error-pages in my web.xml. When tomcat picks up an error and redirects it to the location given by the element in , the filters that would have been invoked for that location are actually not invoked. I found an almost

Re: filters on j_security_check

2011-10-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chema, On 10/16/2011 1:55 PM, Chema wrote: >> >> >> >> Frankly, if you're using Spring Security, I'd stick with it. I >> myself am thinking of making the switch. >> >> > Yes, I tried it and like it , but I need Single Sign On support and > the so

Re: filters on j_security_check

2011-10-16 Thread Chema
> > > > Frankly, if you're using Spring Security, I'd stick with it. I myself > am thinking of making the switch. > > Yes, I tried it and like it , but I need Single Sign On support and the solutions what Spring Security offers are complicated to implement by me

Re: filters on j_security_check

2011-10-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chema, On 10/15/2011 4:18 PM, Chema wrote: > This is one of the reasons I switched to SecurityFilter: there is > a > >> FlexibleRealmInterface that passes-in the HttpServletRequest that >> was used to attempt authentication. That allows you to get ni

RE: filters on j_security_check

2011-10-15 Thread Caldarale, Charles R
> From: Chema [mailto:demablo...@gmail.com] > Subject: Re: filters on j_security_check > where I can find info about SecurityFilter ? The first hit on Google... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use on

Re: filters on j_security_check

2011-10-15 Thread Chema
This is one of the reasons I switched to SecurityFilter: there is a > FlexibleRealmInterface that passes-in the HttpServletRequest that was > used to attempt authentication. That allows you to get nice things > like the ip address of the request for logging. > > I'm interested on what are talking

Re: filters on j_security_check

2011-10-15 Thread Pid
On 13/10/2011 20:53, Caldarale, Charles R wrote: > If you want to do programmatic security in addition to declarative security, Or use the Servlet 3.0 APIs, supported by Tomcat. p signature.asc Description: OpenPGP digital signature

Re: filters on j_security_check

2011-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 10/13/2011 2:11 PM, Caldarale, Charles R wrote: >> From: Alejandro Soto [mailto:smalejan...@gmail.com] Subject: Re: >> filters on j_security_check > >> what i need is to know if the authentication was successful or >

RE: filters on j_security_check

2011-10-13 Thread Caldarale, Charles R
> From: Alejandro Soto [mailto:smalejan...@gmail.com] > Subject: Re: filters on j_security_check > call j_security_check from inside another servlet is > just an idea, why is bad idea? Because it's not supported by the spec; please read SRV.12. If you want to do program

Re: filters on j_security_check

2011-10-13 Thread Alejandro Soto
> > From: Alejandro Soto [mailto:smalejan...@gmail.com] > > Subject: Re: filters on j_security_check > > > what i need is to know if the authentication was successful or not > > What are you going to do with said information? > > > I just need to know that status and ha

RE: filters on j_security_check

2011-10-13 Thread Caldarale, Charles R
> From: Alejandro Soto [mailto:smalejan...@gmail.com] > Subject: Re: filters on j_security_check > what i need is to know if the authentication was successful or not What are you going to do with said information? > I just need to know that status and has to be before the au

Re: filters on j_security_check

2011-10-13 Thread Alejandro Soto
servlet. Any suggestions about how resolve my requirement? Thanks in advance. Alejandro On Thu, Oct 13, 2011 at 12:50 PM, Pid wrote: > On 13/10/2011 15:09, Alejandro Soto wrote: > > Hi, my name is Alejandro, I am working with Tomcat 7.0.20 and I need to > know > > how can

Re: filters on j_security_check

2011-10-13 Thread Pid
On 13/10/2011 15:09, Alejandro Soto wrote: > Hi, my name is Alejandro, I am working with Tomcat 7.0.20 and I need to know > how can I apply filters to j_security_check to verify the status of login > before continue with my authentication process. You can't use Filters because the

filters on j_security_check

2011-10-13 Thread Alejandro Soto
Hi, my name is Alejandro, I am working with Tomcat 7.0.20 and I need to know how can I apply filters to j_security_check to verify the status of login before continue with my authentication process. I was thinking to use valves, but I read on internet that valves will be replaced with Filters

Re: Filters and JSP

2011-04-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 4/14/2011 8:11 PM, Bill Davidson wrote: > public MyResponseWrapper( HttpServletResponse response ) throws > IOException { > super(response); > myOutputStream = new MyOutputStream(response); > Outpu

Filters and JSP

2011-04-14 Thread Bill Davidson
Tomcat 6.0.29 I've written a response filter for my web app and it seems to work fine for servlets but not for JSP's. I public void doFilter( ServletRequest request, ServletResponse response, FilterChain chain ) throws IOException, ServletException { chain.doFilter(request, new My

Re: Starup Order [Filters --> Servlets --> Context]

2010-11-24 Thread Pid
On 24/11/2010 17:15, Rob Gregory wrote: > Thanks Pid, see my comment below:- > >> -Original Message- >> From: Pid [mailto:p...@pidster.com] >> Sent: 24 November 2010 17:05 >> To: Tomcat Users List >> Subject: Re: Starup Order [Filters --> Servlets

RE: Starup Order [Filters --> Servlets --> Context]

2010-11-24 Thread Rob Gregory
Thanks Pid, see my comment below:- > -Original Message- > From: Pid [mailto:p...@pidster.com] > Sent: 24 November 2010 17:05 > To: Tomcat Users List > Subject: Re: Starup Order [Filters --> Servlets --> Context] > > On 24/11/2010 15:38, Rob Gregory wrote: >

Re: Starup Order [Filters --> Servlets --> Context]

2010-11-24 Thread Pid
On 24/11/2010 15:38, Rob Gregory wrote: > Hi Guys, > > > > Am I correct in my assumption that servlet filters are started before > servlets and that the context listeners are not fired until both the > filters and servlets have been initialised? ServletContextListeners

Starup Order [Filters --> Servlets --> Context]

2010-11-24 Thread Rob Gregory
Hi Guys, Am I correct in my assumption that servlet filters are started before servlets and that the context listeners are not fired until both the filters and servlets have been initialised? What I am trying to do is run some code before the context is started which is actually going to copy

Re: IP based request filters for admin/manager

2010-07-19 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johan, On 7/18/2010 11:48 PM, Johan Martinez wrote: Started afresh and got it working finally. I tried with and without escape character and both worked. Probably because . matches '.'. Yep. :-) Johan, if you are s

Re: IP based request filters for admin/manager

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johan, On 7/18/2010 11:48 PM, Johan Martinez wrote: > Started afresh and got it working finally. > > I tried with and without escape character and both worked. Probably because . matches '.'. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v

Re: IP based request filters for admin/manager

2010-07-18 Thread Johan Martinez
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 wrote: > 2010/7/18 Shantanu Pavgi : > > > > I don't have a solution, but just wanted to comment that examples in the > doc are

Re: IP based request filters for admin/manager

2010-07-18 Thread Konstantin Kolinko
2010/7/18 Shantanu Pavgi : > > 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

RE: IP based request filters for admin/manager

2010-07-18 Thread Shantanu Pavgi
ough. -- Shantanu Pavgi. From: Konstantin Kolinko [knst.koli...@gmail.com] Sent: Sunday, July 18, 2010 11:16 AM To: Tomcat Users List Subject: Re: IP based request filters for admin/manager 2010/7/18 Johan Martinez : > I was wondering how to config

Re: IP based request filters for admin/manager

2010-07-18 Thread Konstantin Kolinko
2010/7/18 Johan Martinez : > I was wondering how to configure Request Filters to allow access to admin, > manager, status-report, etc... I followed tomcat doc: > http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Request_Filters > and I was able to restrict access by speci

Re: IP based request filters for admin/manager

2010-07-17 Thread Johan Martinez
ve guessed out I am a newbie and this is turning out to be > really interesting and educational. :) > > -- > jM. > > On Sun, Jul 18, 2010 at 12:31 AM, Caldarale, Charles R < > chuck.caldar...@unisys.com> wrote: > >> >> > From: Johan Martinez [mailto

Re: IP based request filters for admin/manager

2010-07-17 Thread Johan Martinez
gt; From: Johan Martinez [mailto:jmart...@gmail.com] > > Subject: Re: IP based request filters for admin/manager > > > > I don't want to replace the default ROOT webapp, in other > > words, I don't want my specific webapp to be ROOT app. > > A little odd, but if t

RE: IP based request filters for admin/manager

2010-07-17 Thread Caldarale, Charles R
> From: Johan Martinez [mailto:jmart...@gmail.com] > Subject: Re: IP based request filters for admin/manager > > I don't want to replace the default ROOT webapp, in other > words, I don't want my specific webapp to be ROOT app. A little odd, but if that's your ch

Re: IP based request filters for admin/manager

2010-07-17 Thread Johan Martinez
ostname/manager/html works. I am not following how second link is working? Am I missing anything? Thanks, jM. On Sat, Jul 17, 2010 at 11:30 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Johan Martinez [mailto:jmart...@gmail.com] > > Subject: IP b

RE: IP based request filters for admin/manager

2010-07-17 Thread Caldarale, Charles R
> From: Johan Martinez [mailto:jmart...@gmail.com] > Subject: IP based request filters for admin/manager > > How can I deny access to default welcome/index page, > changelog, release-notes etc.? If you're deploying Tomcat in any kind of environment that requires securin

Re: IP based request filters for admin/manager

2010-07-17 Thread Johan Martinez
The first line should have been: I was wondering how to configure Request Filters to s/allow/RESTRICT/ access to admin, manager, status-report, etc.. :) jM. On Sat, Jul 17, 2010 at 11:19 PM, Johan Martinez wrote: > I was wondering how to configure Request Filters to allow access to ad

IP based request filters for admin/manager

2010-07-17 Thread Johan Martinez
I was wondering how to configure Request Filters to allow access to admin, manager, status-report, etc... I followed tomcat doc: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Request_Filters and I was able to restrict access by specifying webapp names, e.g

Re: Valves being converted to Filters?

2009-10-22 Thread Elli Albek
that case it may be safer to just use that class in the method signatures. E - Original Message - From: Christopher Schultz To: Tomcat Users List Sent: Wed, 21 Oct 2009 08:11:17 -0700 (PDT) Subject: Re: Valves being converted to Filters? Will there be a way to grab information from

Re: Valves being converted to Filters?

2009-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 10/20/2009 9:47 PM, Mark Thomas wrote: >> Is there a specific reason for this? > > Portability, reduce internal code duplication (filters & valves have a lot in > common) Also, Tomcat has never provided standard r

Re: Valves being converted to Filters?

2009-10-21 Thread Mark Thomas
Eric B. wrote: > "Mark Thomas" wrote in message > news:200910202047470...@265006334... > >>> Although I love filters, I find that valves have a very specific need >>> within >>> the container as well; it allows you to configure the container >&g

RE: Valves being converted to Filters?

2009-10-20 Thread Elli Albek
converted to Filters?    Hello Henri,    I was referring to public information such as : - Google Summer Of Code 2009, project "Convert current Tomcat valves to Servlet Filters" : http://wiki.apache.org/tomcat/SummerOfCode2009 and the various associated emails on Tomcat dev mailing li

Re: Valves being converted to Filters?

2009-10-20 Thread Eric B.
"Mark Thomas" wrote in message news:200910202047470...@265006334... >> Although I love filters, I find that valves have a very specific need >> within >> the container as well; it allows you to configure the container >> independently of the application.

Re: Valves being converted to Filters?

2009-10-20 Thread Mark Thomas
> From: "Eric B." > To: users@tomcat.apache.org > Sent: 20/10/09, 15:38:59 > Subject: Valves being converted to Filters? > Is this true? Is Tomcat moving away from valves and towards filters in the > next version(s)? Sort off. Ideally everywhere but I suspect som

Re: Valves being converted to Filters?

2009-10-20 Thread Cyrille Le Clerc
   Hello Henri,    I was referring to public information such as : - Google Summer Of Code 2009, project "Convert current Tomcat valves to Servlet Filters" : http://wiki.apache.org/tomcat/SummerOfCode2009 and the various associated emails on Tomcat dev mailing list. - Mark Thomas post

Valves being converted to Filters?

2009-10-20 Thread Eric B.
ntly being converted into Servlet Filter (1), here is a Servlet Filter implementation... " Is this true? Is Tomcat moving away from valves and towards filters in the next version(s)? Is there a specific reason for this? Although I love filters, I find that valves have a very specific n

Re: A question about excluding URL patterns from filters

2009-02-05 Thread Anand HS
; > On Fri, Feb 6, 2009 at 11:31 AM, Caldarale, Charles R < > chuck.caldar...@unisys.com> wrote: > >> > From: Anand HS [mailto:anan...@gmail.com] >> > Subject: A question about excluding URL patterns from filters >> > >> > I have a filter that tak

  1   2   >