Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-13764

Monitoring logs in ERROR for "Agent.configAgentsOnly:agent type = OAuth2Client"

    Details

    • 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
    • Fix Version/s: 7.0.0, 6.5.3
    • Component/s: debug logging, monitoring
    • Labels:
    • 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

      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

      1. Enable Monitoring (eg: enable all monitoring https://backstage.forgerock.com/docs/am/6/maintenance-guide/#monitoring-snmp)
      2. Create a few OAuth2 clients
      3. 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.

        Attachments

          Activity

            People

            • Assignee:
              chee-weng.chea C-Weng C
              Reporter:
              chee-weng.chea C-Weng C
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: