OES11gr2- WLST CreatePolicy() Fails Due To "-" Characters (Doc ID 1930267.1)

Last updated on OCTOBER 16, 2016

Applies to:

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

Symptoms

The following WLST statement fails (connected and switched to domainRuntime() ) whereas statements without "-" in resource type ("alsb-proxy-service") and action ("was-invoke") work properly:

createPolicy( appStripe="alsbProxyServices", policyName="wlstPolicy1", ruleExpression="rule1:GRANT", resourceActions="alsb-proxy-service:/wlstWSProxy(invoke,wss-invoke,access,ANY)", principals="anonymous-role:oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl", obligations="", semantic="or" )

Using OES OSB-SM and therefore is not flexible regarding the resource type.

The observed error is:

[javax.management.openmbean.CompositeDataSupport(compositeType=javax.management.openmbean.CompositeType(name=oracle.security.jps.mas.mgmt.jmx.policy.Portabl
ePrincipal,items=((itemName=principalClazName,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=principalName,itemType=javax.
management.openmbean.SimpleType(name=java.lang.String)),(itemName=type,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)))),contents={pr
incipalClazName=oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl, principalName=anonymous-role, type=CUSTOM})]
Command FAILED, Reason: JPS-05638: #4: No resource type specified.
 
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "/u01/middleware/oracle_common/common/wlst/Opss.py", line 560, in
createPolicy
  File
"/u01/middleware/oracle_common/common/script_handlers/Opss_handler.py", line
1122, in createPolicyImpl
        at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
        at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
        at javax.management.remote.rmi.RMIConnectionImpl_1036_WLStub.invoke(UnknownSource)
        at weblogic.management.remote.common.RMIConnectionWrapper$16.run(ClientProviderBase.java:918)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
        at weblogic.security.Security.runAs(Security.java:61)
        at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:916)
        at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
 
javax.management.MBeanException: javax.management.MBeanException: JPS-05638:
#4: No resource type specified.
wls:/oesdomain/domainRuntime> exit()

 

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