Return-Path: X-Original-To: apmail-struts-dev-archive@www.apache.org Delivered-To: apmail-struts-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2312AD74D for ; Thu, 16 May 2013 19:48:37 +0000 (UTC) Received: (qmail 21111 invoked by uid 500); 16 May 2013 19:48:36 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 21030 invoked by uid 500); 16 May 2013 19:48:36 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 21018 invoked by uid 99); 16 May 2013 19:48:35 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2013 19:48:35 +0000 Received: from localhost (HELO mail-pb0-f46.google.com) (127.0.0.1) (smtp-auth username lukaszlenart, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2013 19:48:35 +0000 Received: by mail-pb0-f46.google.com with SMTP id rq13so2630363pbb.19 for ; Thu, 16 May 2013 12:48:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=G4dSwRnHavv/LuyMiQE6as4DFdeJV1H2ZBIy375SJ+8=; b=HsEz0B7G9GjSCX5i/J3OE0qLRPKJ6Y40ao7orZ+4l47KPiprVdk1OmC+EmpLqPHZjn 3qJF+0AVkFfa7J1VLIGr4nzqJmCMRCZfCJuaC84jf+LmodWyIwWm1yw6eRhFfbt1r3id vgbmSZSj/0nmuiMiHZ/0IsKnMjwLkgZfVqTfot0CpnYDFliagfdP2041JEV/mHFxBsi6 GoR/2L9jqr1HMsiVo6u6oPZMJZmxNRkFQy39BFhW62WZXSnpaT16fTliNEpcwqwN/u/M gfRvLJJZki3aItWAUuPXNYj2HjOQgGXsAtzcXXU9ndhShdC0EahOFQsyAQtOtSMN7jfZ 4mkw== X-Received: by 10.66.27.36 with SMTP id q4mr43753309pag.174.1368733714876; Thu, 16 May 2013 12:48:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.216.102 with HTTP; Thu, 16 May 2013 12:48:14 -0700 (PDT) In-Reply-To: References: From: Lukasz Lenart Date: Thu, 16 May 2013 21:48:14 +0200 Message-ID: Subject: Re: Cookie Interceptor To: Struts Developers List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If this is gonna break backward compatibility, please register an issue with JIRA and we will introduce the change with Struts 2.5/3 version. Regards --=20 =C5=81ukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/4/4 Maurizio Cucchiara : >> My proposal would >> be to simplify the interceptor in two ways: >> 1) Remove the filter by cookie value: I don't know under which >> circumstances that could be useful > I'm not able to identify those circumstances, but AFAIU that filter is > harmless, if you don't define a cookie value, struts will never filter > your cookies. > Furthermore, this change would break bacward compatibility, and this > may make unhappy many users which know those circumstances :(. > >> 2) Parse the cookieName as a OGNL expression, so I can setup the cookie >> names I want to receive dynamically, instead of harcoding them in the >> configuration files. > This could be useful, but at the same time there would be some > security risk related to it. > > >> Also related, there is no way in Struts to setup a Cookie. > Actually, ATM you can implement ServletResponseAware interface. Yes, I > know this don't mean that there is a direct way, but it is not so hard > to implement IMHO. > >> I developed my >> own CookieProviderInterceptor and CookieProvider (interfaces) to allow a= n >> Action to create a cookie and pass it to the CookieProviderInterceptor t= o >> ser it in the request, but I would love to see a more integrated process= . > > At first glance, the patch you provided sounds good to me, I will get > a deeper look in the next days. > Further, CPI could provide remove cookie method. > > > Twitter :http://www.twitter.com/m_cucchiara > G+ :https://plus.google.com/107903711540963855921 > Linkedin :http://www.linkedin.com/in/mauriziocucchiara > VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=3Dmaurizio.cucchiar= a > > Maurizio Cucchiara > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org