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

Insufficient error logging when 'agent profile' can not be found by CDCServlet

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.5.3_RC1, 9.5.3, 9.5.4_RC1, 9.5.4, 9.5.5, 10.0.0-EA, 10.0.0, 10.0.1, 10.1.0-Xpress, 11.0.0
    • 10.0.3, 11.0.2, 12.0.0
    • cdsso
    • OpenAM 10.1.0-Xpress, Agent in CDSSO mode
    • Rank:
      1|hzo4rj:
    • Sprint 64 - Team Tesla

      Description

      In production systems mostly only ERROR level logging is configured.

      This makes it hard to track down what's wrong if CDCServlet can not find the proper 'agent profile'.

      amCDC:10/03/2013 12:07:45:856 PM CDT: Thread[ajp-7900-5,5,main]
      ERROR: Invalid Agent: Could not get agent for the realm
      java.lang.Exception: Invalid Agent: Not configured in directory
              at com.iplanet.services.cdc.LdapSPValidator.validateAndGetRestriction(LdapSPValidator.java:164)
              at com.iplanet.services.cdc.CDCServlet.redirectWithAuthNResponse(CDCServlet.java:412)
              at com.iplanet.services.cdc.CDCServlet.doGetPost(CDCServlet.java:380)
              at com.iplanet.services.cdc.CDCServlet.doGet(CDCServlet.java:264)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      

      While on 'WARNING' level

      amCDC:10/03/2013 12:07:45:856 PM CDT: Thread[ajp-7900-5,5,main]
      WARNING: LdapSPValidator.validateAndGetRestriction: Invalid agent ID: <scheme>://<FQDN>:<PORT>/
      

      The term 'agent ID' is not really accurate as well because OpenAM queries property 'Agent Root URL for CDSSO' to match it against the value of 'ProviderID' in the incoming 'CDC-request'.

      Either Exception messages within

      LdapSPValidator

      provide more details or the interesting debug/warning messages within

      LdapSPValidator

      are changed to

      CDCServlet.debug.error

        Attachments

          Activity

            People

            sachiko Sachiko Wallace
            bthalmayr Bernhard Thalmayr
            Alex Walker [X] Alex Walker [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: