Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Comment thread
brusdev marked this conversation as resolved.
//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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down