[
https://issues.jboss.org/browse/WFCORE-1702?page=com.atlassian.jira.plugi...
]
Brian Stansberry moved JBEAP-5589 to WFCORE-1702:
-------------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-1702 (was: JBEAP-5589)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Domain Management
(was: Domain Management)
(was: Transactions)
Affects Version/s: (was: 7.1.0.DR2)
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: Brian Stansberry
Priority: Minor
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)