]
Chao Wang reassigned WFCORE-1702:
---------------------------------
Assignee: Chao Wang
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
Assignee: Chao Wang
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.