search cancel

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

book

Article ID: 8700

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On

Issue/Introduction

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?

 

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.

 

Environment

Policy Server R12.52 SP1SDK R12.52 SP1

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