Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 34688 invoked from network); 22 Dec 2010 01:09:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Dec 2010 01:09:57 -0000 Received: (qmail 17598 invoked by uid 500); 22 Dec 2010 01:09:57 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 17570 invoked by uid 500); 22 Dec 2010 01:09:57 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 17563 invoked by uid 99); 22 Dec 2010 01:09:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 01:09:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [64.22.103.163] (HELO li16-163.members.linode.com) (64.22.103.163) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 01:09:51 +0000 Received: from localhost ([127.0.0.1] helo=maggie.scriptdolphin.com) by li16-163.members.linode.com with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1PVDCs-0000zj-22; Tue, 21 Dec 2010 17:09:30 -0800 Received: from localhost ([127.0.0.1]:58311) by maggie.scriptdolphin.com with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1PVDCq-0007uW-QF; Tue, 21 Dec 2010 17:09:28 -0800 Date: Tue, 21 Dec 2010 17:09:28 -0800 (PST) From: Mark Hedges To: Joe Schaefer cc: apreq-dev@httpd.apache.org Subject: Re: skip bad cookie value in Apache2::Cookie::Jar? In-Reply-To: <994077.51308.qm@web54403.mail.re2.yahoo.com> Message-ID: References: <994077.51308.qm@web54403.mail.re2.yahoo.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) X-Ray: Vision MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Rcpt-To: joe_schaefer@yahoo.com, apreq-dev@httpd.apache.org X-SA-Exim-Mail-From: hedges@formdata.biz X-SA-Exim-Scanned: No (on li16-163.members.linode.com); SAEximRunCond expanded to false On Tue, 21 Dec 2010, Joe Schaefer wrote: > > Could Apache2::Cookie::Jar maybe have an option to skip > > NOTOKEN errors when reading the jar? Then it would do > > something like below. Or does the eval have to happen in > > the 'each %attrs' loop of Jar->new(). > > The issue has nothing to do with browsers. It has to do > with 3rd party apps that generate bogus cookies. If you > want apreq to ignore those cookies, just use eval {} and > trap the exception. > > If you want to fix those 3rd party cookie apps, it's good > that apreq lets you know there's a problem. > That makes sense. Now I get the jar with eval { } in my thing only if a directive is set to do that. Thanks for the input. --mark--