-
Bug
-
Resolution: Done
-
Critical
-
RHDG Operator CSV 8.3.6 GA
-
None
Specifying multiple authorization permissions for a role causes server startup to fail.
The following Infinispan CR spec results in the following error on server startup:
spec: security: authorization: enabled: true roles: - name: my-role-1 permissions: - ALL - name: my-role-2 permissions: - CREATE - READ - WRITE
10:44:37,108 INFO (main) [BOOT] JVM OpenJDK 64-Bit Server VM Red Hat, Inc. 11.0.13+8-LTS 10:44:37,115 INFO (main) [BOOT] JVM arguments = [-server, -Xmx512m, -XX:+ExitOnOutOfMemoryError, -XX:MetaspaceSize=32m, -XX:MaxMetaspaceSize=96m, -Djava.net.preferIPv4Stack=true, -Djava.awt.headless=true, -Dvisualvm.display.name=infinispan-server, -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager, -Dinfinispan.server.home.path=/opt/infinispan, -classpath, :/opt/infinispan/boot/infinispan-server-runtime-13.0.10.Final-loader.jar, org.infinispan.server.loader.Loader, org.infinispan.server.Bootstrap, --bind-address=0.0.0.0, -l, /opt/infinispan/server/conf/operator/log4j.xml, -c, operator/infinispan.xml] 10:44:37,115 INFO (main) [BOOT] PID = 140 10:44:37,148 INFO (main) [org.infinispan.SERVER] ISPN080000: Infinispan Server starting 10:44:37,148 INFO (main) [org.infinispan.SERVER] ISPN080017: Server configuration: operator/infinispan.xml 10:44:37,148 INFO (main) [org.infinispan.SERVER] ISPN080032: Logging configuration: /opt/infinispan/server/conf/operator/log4j.xml 10:44:37,547 FATAL (main) [org.infinispan.SERVER] ISPN080028: Infinispan Server failed to start java.lang.IllegalArgumentException: No enum constant org.infinispan.security.AuthorizationPermission.CREATE,READ,WRITE at java.base/java.lang.Enum.valueOf(Enum.java:240) at org.infinispan.security.AuthorizationPermission.valueOf(AuthorizationPermission.java:11) at org.infinispan.configuration.global.GlobalRoleConfigurationBuilder.permission(GlobalRoleConfigurationBuilder.java:46) at org.infinispan.configuration.parsing.Parser.parseGlobalRole(Parser.java:1013) at org.infinispan.configuration.parsing.Parser.parseGlobalAuthorization(Parser.java:973) at org.infinispan.configuration.parsing.Parser.parseGlobalSecurity(Parser.java:897) at org.infinispan.configuration.parsing.Parser.parseContainer(Parser.java:811) at org.infinispan.configuration.parsing.Parser.readElement(Parser.java:85) at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:209) at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:187) at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:175) at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:169) at org.infinispan.server.Server.parseConfiguration(Server.java:309) at org.infinispan.server.Server.<init>(Server.java:227) at org.infinispan.server.Bootstrap.runInternal(Bootstrap.java:163) at org.infinispan.server.tool.Main.run(Main.java:98) at org.infinispan.server.Bootstrap.main(Bootstrap.java:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.infinispan.server.loader.Loader.run(Loader.java:106) at org.infinispan.server.loader.Loader.main(Loader.java:51)
- links to