Policy Administration REST API Fails To Create Authorization Policy With Attribute Condition (Doc ID 1907134.1)

Last updated on JANUARY 04, 2017

Applies to:

Oracle Access Manager - Version 11.1.2.1.0 and later
Information in this document applies to any platform.

Symptoms

When trying to add an authorization policy which contains an attribute condition using the policy administration REST API as below. a 500 error is returned.

curl -u weblogic:password -H "Content-Type: application/xml" --request POST --data "@/home/user/authz_policy.xml" http://oamhost.oracle.com:7001/oam/services/rest/11.1.2.0.0/ssa/policyadmin/authzpolicy

If the attribute condition is removed, the same xml file will load successfully.  If the same policy is added manually and displayed using the API, the structure displayed is identical to what was in the xml file.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms