Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2402

SystemPropertiesConfiguration swaps JMX user / password

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 5.3.0
    • 5.5.0
    • None
    • None
    • Linux

    Description

      org.apache.activemq.web.config.SystemPropertiesConfiguration has invalid getJmxUser() and getJmxPassword() methods – user returns password, and vice-versa. This means you need to swap the webconsole.jmx.user and webconsole.jmx.password properties when using the web console configured via system-properties.

      Current methods:
      //-----------------------------------------------------
      public String getJmxPassword() {
      return System.getProperty(PROPERTY_JMX_USER);
      }

      public String getJmxUser() {
      return System.getProperty(PROPERTY_JMX_PASSWORD);
      }
      //-----------------------------------------------------

      These should be swapped.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ccondit Craig Condit
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: