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 3BC3D11943 for ; Wed, 14 May 2014 19:43:56 +0000 (UTC) Received: (qmail 99121 invoked by uid 500); 14 May 2014 19:17:15 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 99082 invoked by uid 500); 14 May 2014 19:17:15 -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 99074 invoked by uid 99); 14 May 2014 19:17:15 -0000 Received: from Unknown (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2014 19:17:15 +0000 Date: Wed, 14 May 2014 19:17:14 +0000 (UTC) From: "Aleksandr Mashchenko (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (WW-4346) Nested visitor validator returns wrong full field name 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-4346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksandr Mashchenko updated WW-4346: ------------------------------------- Attachment: visitor-full-field-name.diff > Nested visitor validator returns wrong full field name > ------------------------------------------------------ > > Key: WW-4346 > URL: https://issues.apache.org/jira/browse/WW-4346 > Project: Struts 2 > Issue Type: Bug > Reporter: Aleksandr Mashchenko > Labels: patch > Attachments: visitor-full-field-name.diff > > > Original issue report: http://stackoverflow.com/questions/23544452/chaining-visitor-validator-in-struts-2. > This bug can be reproduced by nesting two or more visitor validators with a conversion validator in the last validation configuration. > Conversion validator in nested visitor validators doesn't work as expected because getFullFieldName method in VisitorFieldValidator.AppendingValidatorContext returns not a full field name. > This patch makes sure that the correct full field name is returned. > Also the InternalValidatorContextWrapper-s from AnnotationActionValidatorManager and DefaultActionValidatorManager could be removed because they were introduced to fix similar issue with nested visitor validators. See https://issues.apache.org/jira/browse/XW-588 and https://issues.apache.org/jira/browse/XW-618 for more details. -- This message was sent by Atlassian JIRA (v6.2#6252)