Symantec Access Management

Tech Tip : CA Single Sign-On : The Java Policy Management Method SmPolicyApi.getAgent() fails to get a specific Agent

  • 1.  Tech Tip : CA Single Sign-On : The Java Policy Management Method SmPolicyApi.getAgent() fails to get a specific Agent

    Broadcom Employee
    Posted Nov 30, 2017 04:13 AM

    Issue:

     

    We have an Agent with the following name:

     

    “pi-pers-onal-ag-ent.myhost.myzone.mydomain.com”.

     

    When we call the Java Policy API getAgent Method to retrieve this Agent, the request fails to find it, while we can retrieve other Agents. Why is this happening? How can we solve it?

     

    Environment:

     

    Policy Server R12.52 SP1

    SDK R12.52 SP1

     

    Cause:

     

    The Policy Server looks in the Policy Store for the Agent using the OID. The Policy Server code incorrectly uses the Agent Name as an OID. This happens because the code interpret the value pi-pers-onal-ag-ent.myhost.myzone.mydomain.com as a valid OID. It has an hyphen at the third character "-".

    The Policy Server code has been modified to make sure the OID is valid before deciding it is.

     

    Resolution:

     

    Upgrade Policy Server to 12.52 SP1 CR08 to solve this issue.

     

    Defects Fixed in 12.52 SP1 CR08

     

    339507 DE157079 SDK Policy API call getAgent fails to find the agent.

     

    Defects Fixed in 12.52 SP1 CR08 - CA Single Sign-On - 12.52 SP1 - CA Technologies Documentation 

     

    KB : TEC1811165