OES11gr2 - PEP API Throws Missed Attribute Value In Runtime (Doc ID 1616234.1)

Last updated on MARCH 13, 2016

Applies to:

Oracle Entitlements Server - Version 11.1.2.1.0 and later
Information in this document applies to any platform.

Goal

OES PEP API throws Missed attribute value in runtime, if the policy has a Condition with an attribute.

PepRequest req =PepRequestFactoryImpl.getPepRequestFactory().newQueryPepRequest(subject,contextMap,scope,reqQryType);

The next exception is showed:

Exception: org.openliberty.openaz.azapi.pep.PepException:
com.bea.security.MissingAttributeException: Missed attribute value in runtime.
org.openliberty.openaz.azapi.pep.PepException:
com.bea.security.MissingAttributeException: Missed attribute value inruntime.
        at oracle.security.jps.openaz.pep.PepRequestImpl.processQuery(PepRequestImpl.java:357)
        atoracle.security.jps.openaz.pep.PepRequestImpl.decide(PepRequestImpl.java:181)
        at oracle.security.example.PepSampleApp.test4(PepSampleApp.java:251)
        at oracle.security.example.PepSampleApp.run(PepSampleApp.java:91)
        at oracle.security.example.PepSampleApp.main(PepSampleApp.java:64)
Caused by: com.bea.security.MissingAttributeException: Missed attribute value in runtime.
        at com.bea.security.impl.AuthorizationServiceImpl.queryActionsOnChildResource_internal(AuthorizationServiceImpl.java:1464)
        at com.bea.security.impl.AuthorizationServiceImpl.queryActionsOnChildResource(AuthorizationServiceImpl.java:1356)
        at com.bea.security.AuthorizationService.queryActionsOnChildResource(AuthorizationService.java:524)
        at oracle.security.jps.openaz.pep.PepRequestImpl.processQuery(PepRequestImpl.java)

 

Solution

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