[
https://issues.redhat.com/browse/WFLY-11933?page=com.atlassian.jira.plugi...
]
Claudio Weiler commented on WFLY-11933:
---------------------------------------
[~jmesnil], sorry if I'm been meddlesome, but I see that if metrics are available
without RBAC , than, enabling RBAC should not change this behavior. What should change
behavior is if {{security-enable}} atribute is set to true, right?
I've posted a PR (
https://github.com/wildfly/wildfly/pull/13753) using the same
approach that you used to solve WFLY-14034 .
Error when accessing metrics with RBAC enabled
----------------------------------------------
Key: WFLY-11933
URL:
https://issues.redhat.com/browse/WFLY-11933
Project: WildFly
Issue Type: Bug
Components: Management, MP Metrics
Affects Versions: 16.0.0.Final, 17.0.0.Final, 17.0.1.Final, 21.0.0.Final
Reporter: Claudio Weiler
Assignee: Jeff Mesnil
Priority: Major
Accordingly to
https://docs.wildfly.org/17/Admin_Guide.html#http-endpoint-2 and
https://wildscribe.github.io/WildFly/17.0/subsystem/microprofile-metrics-...,
access to metrics endpoint is controlled by the security-enabled attribute.
When this attribute is set to false, there is an Exception when metrics are accessed. By
default, this attribute is set to false on standalone.xml config.
Please, refer to steps to reproduce. This error occurs only when RBAC are enabled.
When RBAC is enabled for management in Wildfly, metrics throws exception:
java.lang.IllegalStateException: WFLYMETRICS0003: Unable to read attribute
XAForgetAverageTime on [
("subsystem" => "datasources"),
("data-source" => "ExampleDS"),
("statistics" => "pool")
]: "WFLYCTL0216: Management resource '[
(\"subsystem\" => \"datasources\"),
(\"data-source\" => \"ExampleDS\"),
(\"statistics\" => \"pool\")
]' not found".
--
This message was sent by Atlassian Jira
(v7.13.8#713008)