[
https://issues.apache.org/jira/browse/ARTEMIS-5809?focusedWorklogId=995724&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-995724
]
ASF GitHub Bot logged work on ARTEMIS-5809:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 11/Dec/25 06:47
Start Date: 11/Dec/25 06:47
Worklog Time Spent: 10m
Work Description: brusdev commented on code in PR #6121:
URL: https://github.com/apache/artemis/pull/6121#discussion_r2609382675
##########
artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/SimpleString.java:
##########
@@ -372,8 +372,10 @@ public String[] getPaths(final char separator) {
}
List<String> pathsList = new ArrayList<>();
StringBuilder pathAccumulator = new StringBuilder();
- for (char c : toString().toCharArray()) {
- if (c == separator) {
+ char[] chars = toString().toCharArray();
+ for (int i = 0; i < chars.length; i++) {
+ char c = chars[i];
+ if (c == separator && (i == 0 || chars[i - 1] != '\\')) {
Review Comment:
What is the expected behavior when chars[i - 1] == '\\' and chars[i - 2] ==
'\\'?
Issue Time Tracking
-------------------
Worklog Id: (was: 995724)
Time Spent: 40m (was: 0.5h)
> Account for escaped delimiters when parsing address paths
> ---------------------------------------------------------
>
> Key: ARTEMIS-5809
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5809
> Project: Artemis
> Issue Type: Bug
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.45.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]