-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 14.1.0, 14.1.1, 5.5.1, 6.0.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4
-
Component/s: debug logging, monitoring
-
Labels:
-
Rank:1|hzwxvb:
-
Sprint:AM Sustaining Sprint 75
-
Story Points:1
-
Support Ticket IDs:
-
Needs QA verification:No
-
Functional tests:No
-
Are the reproduction steps defined?:Yes and I used the same an in the description
Bug description
When enabled monitoring and if there is any OAuth2 client, this will log in ERROR
mode
ERROR: Agent.configAgentsOnly:agent type = OAuth2Client, agent name = ???? not supported.
How to reproduce the issue
- Enable Monitoring (eg: enable all monitoring https://backstage.forgerock.com/docs/am/6/maintenance-guide/#monitoring-snmp)
- Create a few OAuth2 clients
- Start AM and observe CoreSystem logs from ERROR
Expected behaviour
Logging on as informational or warning but never ERROR
Current behaviour
Logging error for unsupported OAuth2/OpenID agent
Work around
Ignore this as there is no impact
Code analysis
Code does not cater for this missing AgentType and treats it as error. In fact for these it should be information and if really there is is new AgentType that is unknown at most it is warning.