Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3415810CEB for ; Mon, 16 Dec 2013 07:04:11 +0000 (UTC) Received: (qmail 52421 invoked by uid 500); 16 Dec 2013 07:04:09 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 52378 invoked by uid 500); 16 Dec 2013 07:04:08 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 52357 invoked by uid 99); 16 Dec 2013 07:04:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Dec 2013 07:04:07 +0000 Date: Mon, 16 Dec 2013 07:04:07 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4257) ParametersInterceptor uses same method on ParameterNameAware interface to validate parameters and properties MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13848873#comment-13848873 ] Lukasz Lenart commented on WW-4257: ----------------------------------- WW-4154 supposed restore the old behaviour so I'm bit confuse :( What you mean is that the logic in {{SecurityMemberAccess}} should also be reverted, right? I mean I can recall that I made some changes in that area to match logic in {{ParametersInterceptor}} when used with {{ParameterNameAware}}. > ParametersInterceptor uses same method on ParameterNameAware interface to validate parameters and properties > ------------------------------------------------------------------------------------------------------------ > > Key: WW-4257 > URL: https://issues.apache.org/jira/browse/WW-4257 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.3.16 > Reporter: Christoph Lenggenhager > Fix For: 2.3.17 > > > With version 2.3.16, the {{ParametersInterceptor}} uses the same method to validate parameter names and property names. > As we use the {{ParameterNameAware}} interface to implement parameter whitelisting on action level, this breaks our case. > It might not be how it is intended, but validating a property independent of the actual bean breaks our current implementation. > Possible fixes would be: > - alter {{ParameterNameAware}} to have an additional separate method to validate properties > - introduce a new {{PropertyNameAware}} interface > - introduce a new {{ParameterAndPropertyNameAware}} interface > One could also consider to ignore the {{ParameterNameAware}} interface when validating properties, as for a parameter {{foo.bar}}, the values {{foo.bar}}, {{foo}}, and {{bar}} are passed to the ParameterNameAware interface, which one could see as a bit redundant. Especially given the fact that a context in the case of property validation is not provided. Therefore, it is impossible for the implementation to distinguish between a parameter and a property. -- This message was sent by Atlassian JIRA (v6.1.4#6159)