]
Anna Manukyan updated ISPN-6251:
--------------------------------
Attachment: local-secured.xml
LocalAuthTestServerTask.java
LocalAuthServerTaskIT.java
"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
Assignee: MichaĆ Szynkiewicz
Attachments: local-secured.xml, LocalAuthServerTaskIT.java,
LocalAuthTestServerTask.java
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@ApplicationRealm, supervisor@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.