Siteminder RESTAPI returns an HTTP 500 Error When Searching for a Specific Object XID
search cancel

Siteminder RESTAPI returns an HTTP 500 Error When Searching for a Specific Object XID

book

Article ID: 367961

calendar_today

Updated On:

Products

SITEMINDER

Issue/Introduction

When the Siteminder REST API is used to query a specific object, an HTTP 500 is returned.

curl -x 'GET' \
   'https://<Server>.<Domain>.<tLd>:8443/ca/api/sso/services/policy/v1/objects/CA.FED%3a%3aPartnershipBase%##############-####-####-####-###############' \
   -H 'accept: application/json' \
   -H 'Authorization: Bearer <token_value>

Environment

PRODUCT: Siteminder

COMPONENT: SDK

VERSION: r12.8.x

Cause

The Extensible Identifier (XID) is in the following format:

<Parent>.<ID>::<Object_Class>@<RID/OID>

Example: CA.SM::PartnershipBase@##############-####-####-####-###############

The Siteminder REST API does not support an encoded XID as input. 

Resolution

The same query with an unencoded XID completes successfully.

curl -x 'GET' \
   'https://<Server>.<Domain>.<tLd>:8443/ca/api/sso/services/policy/v1/objects/CA.FED::PartnershipBase@##############-####-####-####-###############' \
   -H 'accept: application/json' \
   -H 'Authorization: Bearer <token_value>