Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 92841 invoked from network); 8 May 2007 01:26:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2007 01:26:16 -0000 Received: (qmail 25065 invoked by uid 500); 8 May 2007 01:26:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 24966 invoked by uid 500); 8 May 2007 01:26:10 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 24955 invoked by uid 99); 8 May 2007 01:26:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 18:26:10 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.190.53.37] (HELO smtp112.plus.mail.re2.yahoo.com) (206.190.53.37) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 07 May 2007 18:26:02 -0700 Received: (qmail 68795 invoked from network); 8 May 2007 01:25:41 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:From:To:References:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:In-Reply-To:Thread-Index:X-MimeOLE; b=4ALaa2Am0Rnd6xkIAyJAoco/2YrOsae+2HnKb9vq2Q+FlJnUgj7B5KJjb64LJxdo7DGc9tOrE7GyWSjB5sdr++T22wD9iNJBT1h7bfJshe4VQMhxnoxYCTGN9k2m84Ay1G8beg1vAA9mGoUa47x+GJeC2s3kRxxichFb25MckOg= ; Received: from unknown (HELO timlap) (timlucia@75.69.56.3 with login) by smtp112.plus.mail.re2.yahoo.com with SMTP; 8 May 2007 01:25:40 -0000 X-YMail-OSG: EIW7rKoVM1lNtmIk7u1qm.FhCsafPM4lQhCxjKqjPUpwf1rLDmit2WeOKR8PJ1i.4FQQw7HAiDvt94K9sdnq38BTlzAPlKZZXj3HLFlAF10cqQsyJUtApaavl0e86CT4PjY1bhOdVVJVNkS3gNSayFRJAw-- From: "Tim Lucia" To: "'Tomcat Users List'" References: <896474.99158.qm@web36903.mail.mud.yahoo.com> Subject: RE: How to avoid infinite loop during filter processing? Date: Mon, 7 May 2007 21:25:34 -0400 Message-ID: <010e01c7910f$c6e74250$270f19ac@timlap> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <896474.99158.qm@web36903.mail.mud.yahoo.com> Thread-Index: AceRCTorWYVNWdehRceOmJmY6vhi0AABhjKg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Checked: Checked by ClamAV on apache.org Sounds like this is a logic problem in your filter; hard to know exactly what w/o seeing your code & filter definition. You could change your logic, possibly by adding a trail of breadcrumbs so the next time through you don't redirect. Or, you could consider changing the filter url match pattern to not include the page(s) to which you are redirecting. Tim > -----Original Message----- > From: webzo [mailto:webzo2000@yahoo.com] > Sent: Monday, May 07, 2007 8:38 PM > To: users@tomcat.apache.org > Subject: How to avoid infinite loop during filter processing? > > Hello, > I am trying to something fairly simple and have a problem- > Basically, I use a filter that intercepts access to ALL jsp pages, > determines whether the user needs to be authenticated. If > authentication is required, the filter passes it on to the next filter > (filterchain.doFilter( ) ), else continues on to to originally > requested page. Problem is, when I try to redirect to the originally > requested page (because no authentication is required), the redirect is > also again intercepted by the filter and we go through the same loop > again- infinite loop. Is there a way to avoid this? > > Thanks. > > Av. > > > > > > __________________________________________________________________________ > __________ > Expecting? Get great news right away with email Auto-Check. > Try the Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org