[
https://issues.apache.org/jira/browse/AMQ-9768?focusedWorklogId=983009&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-983009
]
ASF GitHub Bot logged work on AMQ-9768:
---------------------------------------
Author: ASF GitHub Bot
Created on: 13/Sep/25 06:12
Start Date: 13/Sep/25 06:12
Worklog Time Spent: 10m
Work Description: thezbyg commented on PR #1487:
URL: https://github.com/apache/activemq/pull/1487#issuecomment-3287647778
The main issue is missing JMX value escaping. It could be fixed without any
broker interface changes by adding JMXSupport.encodeObjectNamePart() calls in
BrokerFacadeSupport.java file, but there is the following code that attempts to
transform from JMX value to connection name that is displayed to user:
https://github.com/apache/activemq/blob/fb781880e65a7bd4c6159567fc41edeb4d01cd63/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java#L178
JMX value escaping performed by JMXSupport.encodeObjectNamePart() is not
reversible and it is impossible to get the original value from escaped value.
There is no way to get original connection name as ConnectionViewMBean does not
have a name property. This is the reason for interface changes.
I can remove all other changes and leave only BrokerFacadeSupport.java
changes if that is preferred.
Issue Time Tracking
-------------------
Worklog Id: (was: 983009)
Time Spent: 0.5h (was: 20m)
> Web console fails to open items with names containing special JMX symbols
> -------------------------------------------------------------------------
>
> Key: AMQ-9768
> URL: https://issues.apache.org/jira/browse/AMQ-9768
> Project: ActiveMQ Classic
> Issue Type: Bug
> Components: Web Console
> Affects Versions: 6.x
> Reporter: Albertas Vyšniauskas
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Special symbols are not escaped or replaced in JMX values in web console as
> is done in broker. The only special character that is replaced is ':'
> (colon). This is done by StringUtils.replace(..., ":", "_") calls.
> Broker uses JMXSupport.encodeObjectNamePart() to escape values when
> constructing JMX object names.
> Due to this mismatch, objects containing other special JMX characters (',',
> '=', '\n', '?') are not accessible from web console.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact