Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.16.0
-
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
- links to