[ https://issues.apache.org/jira/browse/ARTEMIS-4485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erwin Dondorp updated ARTEMIS-4485: ----------------------------------- Description: When using the "attributes"-button at the end of a table-row in the Addresses page/table, sometimes the broker-attributes are shown instead of the expected address-attributes. Unfortunately, this is not 100% reproducible, but I've seen it several times now and not doubting my actions. this time I was able to capture the brower console log: {noformat} [artemis-plugin] current nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL/ADDRESS/NAME/HERE app-efb360a568.js:1:9987 [artemis-plugin] targetNID=root-org.apache.activemq.artemis-XYZ-addresses-FULL/ADDRESS/NAME/HERE app-efb360a568.js:1:9987 [hawtio-core-tasks] Executing tasks: LocationChangeStartTasks app-efb360a568.js:1:9987 [hawtio-core-tasks] Executing task: ConParam with parameters: Array(3) [ {…}, "http://artemis-apps-0:58161/console/artemis/attributes?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE", "http://artemis-apps-0:58161/console/artemis/artemisAddresses?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE" ] app-efb360a568.js:1:9987 [hawtio-core-tasks] Executing task: RefreshUserSession with parameters: Array(3) [ {…}, "http://artemis-apps-0:58161/console/artemis/attributes?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE", "http://artemis-apps-0:58161/console/artemis/artemisAddresses?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE" ] app-efb360a568.js:1:9987 [hawtio-core-template-cache] request for template at: plugins/jmx/html/attributes/attributes.html app-efb360a568.js:1:9987 [hawtio-core-template-cache] Getting template: plugins/jmx/html/attributes/attributes.html app-efb360a568.js:1:9987 [hawtio-core-template-cache] Found template for URL: plugins/jmx/html/attributes/attributes.html app-efb360a568.js:1:9987 [hawtio-core-template-cache] Adding template: attributeModal.html app-efb360a568.js:1:9987 [hawtio-jmx] attribute - nid: root-org.apache.activemq.artemis-XYZ-addresses-FULL/ADDRESS/NAME/HERE app-efb360a568.js:1:9987 [hawtio-console-assembly] Updated session. Response: Object { data: "ok", status: 200, headers: Wn(t) , config: {…}, statusText: "OK", xhrStatus: "complete" } app-efb360a568.js:1:9987 [hawtio-jmx] Updated attributes info cache for mbean org.apache.activemq.artemis:broker="XYZ-ABC-123" Object { op: {…}, attr: {…}, class: "org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl", desc: "Information on the management interface of the MBean" } attr: Object { AddressMemoryUsage: {…}, ManagementAddress: {…}, ConnectorServices: {…}, … } class: "org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl" desc: "Information on the management interface of the MBean" op: Object { removeAddressSettings: {…}, listSessions: (2) […], scaleDown: {…}, … } <prototype>: Object { … } {noformat} my observation is that the "targetNID" is incorrect. the brokername that appears in it is truncated on the first "-" character. in the redacted output, this is visible as "XYZ"(truncated) vs "XYZ-ABC-123"(correct). when I manually fix the redirect URL to include the full brokerName, then the requested information is shown, confirming this a bit more. was: When using the "attributes"-button at the end of a table-row in the Addresses page/table, sometimes the broker-attributes are shown instead of the expected address-attributes. Unfortunately, this is not 100% reproducible, but I've seen it several times now and not doubting my actions. this time I was able to capture the brower console log: {noformat} [artemis-plugin] current nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL/ADDRESS/NAME/HERE app-efb360a568.js:1:9987 [artemis-plugin] targetNID=root-org.apache.activemq.artemis-XYZ-addresses-FULL/ADDRESS/NAME/HERE app-efb360a568.js:1:9987 [hawtio-core-tasks] Executing tasks: LocationChangeStartTasks app-efb360a568.js:1:9987 [hawtio-core-tasks] Executing task: ConParam with parameters: Array(3) [ {…}, "http://artemis-apps-0:58161/console/artemis/attributes?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE", "http://artemis-apps-0:58161/console/artemis/artemisAddresses?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE" ] app-efb360a568.js:1:9987 [hawtio-core-tasks] Executing task: RefreshUserSession with parameters: Array(3) [ {…}, "http://artemis-apps-0:58161/console/artemis/attributes?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE", "http://artemis-apps-0:58161/console/artemis/artemisAddresses?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE" ] app-efb360a568.js:1:9987 [hawtio-core-template-cache] request for template at: plugins/jmx/html/attributes/attributes.html app-efb360a568.js:1:9987 [hawtio-core-template-cache] Getting template: plugins/jmx/html/attributes/attributes.html app-efb360a568.js:1:9987 [hawtio-core-template-cache] Found template for URL: plugins/jmx/html/attributes/attributes.html app-efb360a568.js:1:9987 [hawtio-core-template-cache] Adding template: attributeModal.html app-efb360a568.js:1:9987 [hawtio-jmx] attribute - nid: root-org.apache.activemq.artemis-XYZ-addresses-FULL/ADDRESS/NAME/HERE app-efb360a568.js:1:9987 [hawtio-console-assembly] Updated session. Response: Object { data: "ok", status: 200, headers: Wn(t) , config: {…}, statusText: "OK", xhrStatus: "complete" } app-efb360a568.js:1:9987 [hawtio-jmx] Updated attributes info cache for mbean org.apache.activemq.artemis:broker="XYZ-ABC-123" Object { op: {…}, attr: {…}, class: "org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl", desc: "Information on the management interface of the MBean" } attr: Object { AddressMemoryUsage: {…}, ManagementAddress: {…}, ConnectorServices: {…}, … } class: "org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl" desc: "Information on the management interface of the MBean" op: Object { removeAddressSettings: {…}, listSessions: (2) […], scaleDown: {…}, … } <prototype>: Object { … } {noformat} my observation is that the "targetNID" is incorrect. the brokername that appears in it is truncated on the first "-" character. in the redacted output, this is visible as "XYZ"(truncated) vs "XYZ-ABC-123"(correct). when I manually fix the redirect URL to include the full brokerName, then the requested information is shown, confirming this bit more. > console shows broker-attributes instead of the requested address-attributes > --------------------------------------------------------------------------- > > Key: ARTEMIS-4485 > URL: https://issues.apache.org/jira/browse/ARTEMIS-4485 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: Web Console > Affects Versions: 2.31.2 > Reporter: Erwin Dondorp > Priority: Minor > > When using the "attributes"-button at the end of a table-row in the Addresses > page/table, sometimes the broker-attributes are shown instead of the expected > address-attributes. > Unfortunately, this is not 100% reproducible, but I've seen it several times > now and not doubting my actions. > this time I was able to capture the brower console log: > {noformat} > [artemis-plugin] current > nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL/ADDRESS/NAME/HERE > app-efb360a568.js:1:9987 > [artemis-plugin] > targetNID=root-org.apache.activemq.artemis-XYZ-addresses-FULL/ADDRESS/NAME/HERE > app-efb360a568.js:1:9987 > [hawtio-core-tasks] Executing tasks: LocationChangeStartTasks > app-efb360a568.js:1:9987 > [hawtio-core-tasks] Executing task: ConParam with parameters: > Array(3) [ {…}, > "http://artemis-apps-0:58161/console/artemis/attributes?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE", > > "http://artemis-apps-0:58161/console/artemis/artemisAddresses?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE" > ] > app-efb360a568.js:1:9987 > [hawtio-core-tasks] Executing task: RefreshUserSession with parameters: > Array(3) [ {…}, > "http://artemis-apps-0:58161/console/artemis/attributes?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE", > > "http://artemis-apps-0:58161/console/artemis/artemisAddresses?tab=artemis&nid=root-org.apache.activemq.artemis-XYZ-addresses-FULL%2FADDRESS%2FNAME%2FHERE" > ] > app-efb360a568.js:1:9987 > [hawtio-core-template-cache] request for template at: > plugins/jmx/html/attributes/attributes.html app-efb360a568.js:1:9987 > [hawtio-core-template-cache] Getting template: > plugins/jmx/html/attributes/attributes.html app-efb360a568.js:1:9987 > [hawtio-core-template-cache] Found template for URL: > plugins/jmx/html/attributes/attributes.html app-efb360a568.js:1:9987 > [hawtio-core-template-cache] Adding template: attributeModal.html > app-efb360a568.js:1:9987 > [hawtio-jmx] attribute - nid: > root-org.apache.activemq.artemis-XYZ-addresses-FULL/ADDRESS/NAME/HERE > app-efb360a568.js:1:9987 > [hawtio-console-assembly] Updated session. Response: > Object { data: "ok", status: 200, headers: Wn(t) > , config: {…}, statusText: "OK", xhrStatus: "complete" } > app-efb360a568.js:1:9987 > [hawtio-jmx] Updated attributes info cache for mbean > org.apache.activemq.artemis:broker="XYZ-ABC-123" > Object { op: {…}, attr: {…}, class: > "org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl", > desc: "Information on the management interface of the MBean" } > attr: Object { AddressMemoryUsage: {…}, ManagementAddress: {…}, > ConnectorServices: {…}, … } > class: > "org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl" > desc: "Information on the management interface of the MBean" > op: Object { removeAddressSettings: {…}, listSessions: (2) […], scaleDown: > {…}, … } > <prototype>: Object { … } > {noformat} > my observation is that the "targetNID" is incorrect. > the brokername that appears in it is truncated on the first "-" character. > in the redacted output, this is visible as "XYZ"(truncated) vs > "XYZ-ABC-123"(correct). > when I manually fix the redirect URL to include the full brokerName, then the > requested information is shown, confirming this a bit more. -- This message was sent by Atlassian Jira (v8.20.10#820010)