You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Xavi Drudis Ferran (JIRA)" <xm...@xml.apache.org> on 2007/11/13 12:29:50 UTC
[jira] Commented: (XMLBEANS-270) MaxLength error message formatted
incorrectly
[ https://issues.apache.org/jira/browse/XMLBEANS-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542115 ]
Xavi Drudis Ferran commented on XMLBEANS-270:
---------------------------------------------
I can't see this error in Apache XmlBeans version 2.2.0-r413705
but I see an equivalent error in the minLength error message.
It seems to be precisely this off by one substitution error that you say, because
it is fixed by
creating a file WEB-INF/classes/org/apache/xmlbeans/message.properties
which is identical to the one in xbean.jar from xmlbeans except for this:
cvc-minLength-valid.1.1 = \
{0} length ({1}) is less than minLength facet ({2}) for {3}
instead of the original
cvc-minLength-valid.1.1 = \
{0} length ({0}) is less than minLength facet ({1}) for {2}
> MaxLength error message formatted incorrectly
> ---------------------------------------------
>
> Key: XMLBEANS-270
> URL: https://issues.apache.org/jira/browse/XMLBEANS-270
> Project: XMLBeans
> Issue Type: Bug
> Components: Validator
> Affects Versions: Version 2.1
> Environment: Apache/Tomcat 5.0 on Windows 2000 Professional
> Reporter: Harry Smith
>
> The formatting of the error message resulting from a "MaxLength" restriction violation is incorrect. The message reads -
> string length (string) is greater than maxLength facet (2) for 1
> It should be
> string length (2) is greater than maxLength facet (1) for firstInitialType in namespace http://www.medimpact.com
> It looks as if the substitution is off by one position
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org