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?
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.
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.