[jboss-jira] [JBoss JIRA] (WFCORE-1702) WF Core StringBytesLengthValidator should not use error message considering characters

Brian Stansberry (JIRA) issues at jboss.org
Tue Aug 9 10:55:00 EDT 2016


     [ https://issues.jboss.org/browse/WFCORE-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated WFCORE-1702:
-------------------------------------
    Fix Version/s: 3.0.0.CR1


> WF Core StringBytesLengthValidator should not use error message considering characters
> --------------------------------------------------------------------------------------
>
>                 Key: WFCORE-1702
>                 URL: https://issues.jboss.org/browse/WFCORE-1702
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Domain Management
>            Reporter: Ondra Chaloupka
>            Priority: Minor
>             Fix For: 3.0.0.CR1
>
>
> Current implementation of class {{StringBytesLengthValidator}} which is used by {{TransactionSubsystemRootResourceDefinition}} for validation of {{node-identifier}} element prints error message in format
> {code}
> Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[356,13]
> Message: "WFLYCTL0112: '' is an invalid value for parameter node-identifier. Values must have a maximum length of 23 characters"
> {code}
> but the validator does not count characters of the string but bytes of the string. Then could occur if some none-ascii character are part of the {{node id}} that the string has length smaller than {{23}} but the message says that it's bigger.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list