OES11g - Unable Use STRING_IS_IN_BAG function in APM
(Doc ID 2256768.1)
Last updated on OCTOBER 14, 2019
Applies to:
Oracle Entitlements Server - Version 11.1.2.3.0 to 11.1.2.3.0 [Release 11g]Information in this document applies to any platform.
Symptoms
1. Unable to use STRING_IS_IN_BAG in an authorization policy. The signature for STRING_IS_IN_BAG (according to the info message in the condition builder) is:
However, after select the function in the Condition builder, it switches the parameters, getting this:
2. In other words, the Bag is first, then the string.
3. When testing, if setting the first parameter as a string, and the second is a string bag, the function does not work properly (which is expected). Looking at the trace, the first parameter is being converted to a bag.
4. If trying the opposite, setting the first parameter to a string bag, and the second to a string, observing an error when attempting to save the policy:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.security.apm.common.model.exception.APMRuntimeException, msg=oracle.security.jps.service.policystore.info.common.InvalidArgumentException: JPS-20062: Value collection passed to input parameter when a single object is expected.
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:418)
..............................
Caused by: oracle.security.apm.common.model.exception.APMRuntimeException: oracle.security.jps.service.policystore.info.common.InvalidArgumentException: JPS-20062: Value collection passed to input parameter when a single object is expected.
at oracle.security.apm.oes.common.model.policy.PolicyDataProvider.update(PolicyDataProvider.java:255)
at oracle.security.apm.oes.common.model.policy.PolicyDataProvider.update(PolicyDataProvider.java:95)
at oracle.security.apm.oes.common.model.entity.OESCustomEO.doDML(OESCustomEO.java:73)
........................
Caused by: oracle.security.jps.service.policystore.info.common.InvalidArgumentException: JPS-20062: Value collection passed to input parameter when a single object is expected.
at oracle.security.jps.internal.policystore.entitymanager.impl.PolicyRuleManagerImpl.validateCondition(PolicyRuleManagerImpl.java:418)
.......................
## Detail 0 ##
oracle.security.apm.common.model.exception.APMRuntimeException: oracle.security.jps.service.policystore.info.common.InvalidArgumentException: JPS-20062: Value collection passed to input parameter when a single object is expected.
at oracle.security.apm.oes.common.model.policy.PolicyDataProvider.update(PolicyDataProvider.java:255)
at oracle.security.apm.oes.common.model.policy.PolicyDataProvider.update(PolicyDataProvider.java:95)
at oracle.security.apm.oes.common.model.entity.OESCustomEO.doDML(OESCustomEO.java:73)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:7251)
at oracle.security.apm.oes.common.model.entity.OESCustomEO.postChanges(OESCustomEO.java:52)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3359)
..............................
Caused by: oracle.security.jps.service.policystore.info.common.InvalidArgumentException: JPS-20062: Value collection passed to input parameter when a single object is expected.
at oracle.security.jps.internal.policystore.entitymanager.impl.PolicyRuleManagerImpl.validateCondition(PolicyRuleManagerImpl.java:418)
at oracle.security.jps.internal.policystore.entitymanager.impl.PolicyRuleManagerImpl.validateCondition(PolicyRuleManagerImpl.java:447)
... 88 more
]]
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |