[ 
https://issues.apache.org/jira/browse/ARTEMIS-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17107564#comment-17107564
 ] 

ASF subversion and git services commented on ARTEMIS-2765:
----------------------------------------------------------

Commit 8cb5332a50ffe7eaba54bdf84796a241d8a3d438 in activemq-artemis's branch 
refs/heads/master from Chris Rog
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=8cb5332 ]

ARTEMIS-2765 Fix parsing error in XMLUtil

Fix a StringIndexOutOfBoundsException in XMLUtil while parsing system
properties in XML that contains curly braces or unterminated property
references


> StringIndexOutOfBoundsException while processing broker.xml
> -----------------------------------------------------------
>
>                 Key: ARTEMIS-2765
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2765
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.12.0
>            Reporter: Chris Rog
>            Priority: Critical
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When processing a {{broker.xml}} file that contains either an unterminated 
> property reference ({{$\{}}) or has unrelated right curly braces as part of 
> the content, the following exception is thrown:
> {noformat}
> java.lang.StringIndexOutOfBoundsException: String index out of range: -110
>  at java.lang.String.substring(String.java:1967)
>  at 
> org.apache.activemq.artemis.utils.XMLUtil.replaceSystemPropsInString(XMLUtil.java:262)
>  at ...
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to