Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13671

JDBC store fails when authorization is enabled

XMLWordPrintable

      2022-01-31 13:52:13,240 DEBUG (main) [org.infinispan.persistence.manager.PersistenceManagerImpl] PersistenceManagerImpl encountered an exception during startup of stores java.util.concurrent.CompletionException: java.lang.SecurityException: ISPN000287: Unauthorized access: subject 'null' lacks 'ADMIN' permission
      at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
      at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
      at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1739)
      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: java.lang.SecurityException: ISPN000287: Unauthorized access: subject 'null' lacks 'ADMIN' permission
      at org.infinispan.security.impl.Authorizer.checkPermission(Authorizer.java:112)
      at org.infinispan.security.impl.Authorizer.checkPermission(Authorizer.java:67)
      at org.infinispan.manager.DefaultCacheManager.getGlobalComponentRegistry(DefaultCacheManager.java:1158)
      at org.infinispan.persistence.sql.AbstractSchemaJdbcStore.createTableOperations(AbstractSchemaJdbcStore.java:67)
      at org.infinispan.persistence.sql.AbstractSchemaJdbcStore.createTableOperations(AbstractSchemaJdbcStore.java:44)
      at org.infinispan.persistence.jdbc.common.impl.BaseJdbcStore.lambda$start$0(BaseJdbcStore.java:71)
      at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
      ... 5 more
      

              remerson@redhat.com Ryan Emerson
              remerson@redhat.com Ryan Emerson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: