struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes Wannemacher (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-3109) Visitor validator crashes when <message> is blank
Date Fri, 29 May 2009 13:00:43 GMT

     [ https://issues.apache.org/struts/browse/WW-3109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wes Wannemacher updated WW-3109:
--------------------------------

    Fix Version/s: 2.1.8

setting to 2.1.8, unless we get some more info before I release 2.1.7

> Visitor validator crashes when <message> is blank
> -------------------------------------------------
>
>                 Key: WW-3109
>                 URL: https://issues.apache.org/struts/browse/WW-3109
>             Project: Struts 2
>          Issue Type: Bug
>          Components: XML Validators
>    Affects Versions: 2.1.6
>         Environment: Struts 2.1.6 on Websphere 6.1
>            Reporter: Jon
>             Fix For: 2.1.8
>
>
> Using a visitor validator crashes application if the <message> element is empty.
e.g.
> In BeanName-validation.xml this will crash.
> 	<field name="lifeAssured">
> 		<field-validator type="visitor">
> 			<param name="appendPrefix">true</param>
> 			<message></message>
> 		</field-validator>
> 	</field>
> But this will work fine.
> 	<field name="lifeAssured">
> 		<field-validator type="visitor">
> 			<param name="appendPrefix">true</param>
> 			<message>Hi</message>
> 		</field-validator>
> 	</field>
> Message shouldn't be mandatory - I'm happy for the messages defined in the nested beans
validator to be displayed against the field without anything prepended.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message