This is an automated email from the ASF dual-hosted git repository.
brusdev pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/artemis-console.git
The following commit(s) were added to refs/heads/main by this push:
new bb05024 ARTEMIS-5888 - handle the case where mbean names are
delimited with backslashes
bb05024 is described below
commit bb050240223c34676d0502d578e846f210440c22
Author: Andy Taylor <[email protected]>
AuthorDate: Tue Feb 3 13:56:14 2026 +0000
ARTEMIS-5888 - handle the case where mbean names are delimited with
backslashes
---
.../packages/artemis-console-plugin/src/queues/QueuesTable.tsx | 6 +++++-
.../packages/artemis-console-plugin/src/util/jmx.ts | 7 ++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/queues/QueuesTable.tsx
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/queues/QueuesTable.tsx
index d5f2419..b899fa5 100644
---
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/queues/QueuesTable.tsx
+++
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/queues/QueuesTable.tsx
@@ -247,7 +247,11 @@ export const QueuesTable:
React.FunctionComponent<QueueNavigate> = navigate => {
const rowName = row.name;
const rowAddress = row.address;
const rowRoutingType = row.routingType;
- const rowPerms = permissions[rowName];
+ var rowPerms = permissions[rowName];
+ if(rowPerms == undefined) {
+ //it may have a client id with /. in the name which is delimeted in the
mbean name
+ rowPerms = permissions[row.name.replaceAll('\\', '\\\\')];
+ }
const actions: IAction[] = [
showInJmxAction(rowName, rowAddress, rowRoutingType),
attributesAction(rowName, rowAddress, rowRoutingType),
diff --git
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/util/jmx.ts
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/util/jmx.ts
index 47ed6b8..2c215ea 100644
---
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/util/jmx.ts
+++
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/util/jmx.ts
@@ -28,7 +28,12 @@ const ADDRESS_COMPONENT = "component=addresses";
*
"127.0.0.1",component=addresses,address="q1",subcomponent=queues,routing-type="anycast",queue="q1"
*/
export function createQueueObjectName(brokerMBean: string, address: string,
routingType: string, queue: string): string {
- return brokerMBean + ADDRESS_COMPONENT_PART + address +
ADDRESS_SUBCOMPONENT_PART + routingType.toLowerCase() + ADDRESS_TYPE_PART +
queue + STRING_DELIMETER;
+ var queueMBeanName = queue;
+ if(queueMBeanName.includes('\\')){
+ //it may have a client id with /. in the name which is delimeted in
the mbean name
+ queueMBeanName = queueMBeanName.replaceAll('\\', '\\\\');
+ }
+ return brokerMBean + ADDRESS_COMPONENT_PART + address +
ADDRESS_SUBCOMPONENT_PART + routingType.toLowerCase() + ADDRESS_TYPE_PART +
queueMBeanName + STRING_DELIMETER;
}
export function createAddressObjectName(brokerMBean: string, address: string) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]