[infinispan-issues] [JBoss JIRA] (ISPN-6251) "java.lang.SecurityException: ISPN000287: Unauthorized access: subject 'Subject with principal(s): [*]' lacks 'READ' permission" while executing server task over hotrod
Anna Manukyan (JIRA)
issues at jboss.org
Tue Feb 23 04:21:00 EST 2016
Anna Manukyan created ISPN-6251:
-----------------------------------
Summary: "java.lang.SecurityException: ISPN000287: Unauthorized access: subject 'Subject with principal(s): [*]' lacks 'READ' permission" while executing server task over hotrod
Key: ISPN-6251
URL: https://issues.jboss.org/browse/ISPN-6251
Project: Infinispan
Issue Type: Bug
Components: Server
Reporter: Anna Manukyan
When the cache-container is configured with security options and trying to execute a server task over secured cache, the following exception is thrown even though the given user has all permissions:
{code}
org.infinispan.client.hotrod.exceptions.HotRodClientException: java.lang.SecurityException: ISPN000287: Unauthorized access: subject 'Subject with principal(s): [SimpleUserPrincipal [name=supervisor], InetAddressPrincipal [address=127.0.0.1/127.0.0.1], supervisor at ApplicationRealm, supervisor at ApplicationRealm, supervisor]' lacks 'READ' permission
at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:343)
at org.infinispan.client.hotrod.impl.protocol.Codec20.readPartialHeader(Codec20.java:132)
at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:118)
at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:56)
at org.infinispan.client.hotrod.impl.operations.ExecuteOperation.executeOperation(ExecuteOperation.java:49)
at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:54)
at org.infinispan.client.hotrod.impl.RemoteCacheImpl.execute(RemoteCacheImpl.java:703)
at org.infinispan.server.test.task.LocalAuthServerTaskIT.shouldThrowAuthenticationException(LocalAuthServerTaskIT.java:67)
{code}
Please find attached the source code.
This issue may refer to ISPN-6210.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list