Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3017

ArtemisJMXSecurity bulk canInvoke operation always returns true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.16.0
    • 2.17.0
    • JMX, Web Console
    • None

    Description

      Let's send this bulk request to http://localhost:8161/console/jolokia/, eg:

      curl -u admin:admin -d @data.json -H "Content-Type: application/json" http://localhost:8161/console/jolokia/ | jq
      

      data.json

      [
        {
          "type": "exec",
          "mbean": "hawtio:type=security,area=jmx,name=ArtemisJMXSecurity",
          "operation": "canInvoke(java.lang.String,java.lang.String)",
          "arguments": [
            "java.lang:type=Memory",
            "gc()"
          ]
        },
        {
          "type": "exec",
          "mbean": "hawtio:type=security,area=jmx,name=ArtemisJMXSecurity",
          "operation": "canInvoke(java.util.Map)",
          "arguments": [
            {
              "java.lang:type=Memory": [
                "gc()"
              ]
            }
          ]
        }
      ]
      

      Even if the first result gets false, the seconde one always returns true.

      It is because HawtioSecurityControlImpl#canInvoke(java.util.Map) isn't yet really implemented.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tadayosi Tadayoshi Sato
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m