The Java Policy Management Method SmPolicyApi.getAgent() fails to get a specific Agent

Document ID : KB000008700
Last Modified Date : 14/02/2018
Show Technical Document Details
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 SP1SDK 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 instead of an AgentName as it has a hyphen at the third character "-".

The Policy Server code has been modified to ensure the OID is valid before proceeding further even if the hyphens are in the right place.

 

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.

https://docops.ca.com/ca-single-sign-on/12-52-sp1/en/release-notes/cumulative-releases/defects-fixed-in-12-52-sp1-cr08