Bug 1158121 - HR size command broken in cluster mode
Summary: HR size command broken in cluster mode
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Server
Version: 6.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER3
: 6.4.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks: jdg64-Beta-Blockers 1168245
TreeView+ depends on / blocked
 
Reported: 2014-10-28 15:59 UTC by Alan Field
Modified: 2015-01-28 13:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1168245 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1156318 0 unspecified CLOSED HR authentication broken in cluster mode 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker ISPN-4882 0 Blocker Resolved HotRod authentication fails with an authorization-enabled clustered container 2017-05-08 09:50:44 UTC

Description Alan Field 2014-10-28 15:59:17 UTC
Description of problem:
Related to BZ-1156318. HR authentication succeeds with a clustered cache, but executing the RemoteCache.size() command throws SecurityException:
 
Hot Rod Client Exception.
org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for message id[49] returned server error (status=0x85): io.netty.handler.codec.DecoderException: org.infinispan.server.hotrod.HotRodException: java.lang.SecurityException: ISPN000287: Unauthorized access: subject 'null' lacks 'ADMIN' permission
       at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:142)
       at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:96)
       at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:56)
       at org.infinispan.client.hotrod.impl.operations.StatsOperation.executeOperation(StatsOperation.java:42)
       at org.infinispan.client.hotrod.impl.operations.StatsOperation.executeOperation(StatsOperation.java:22)
       at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:49)
       at org.infinispan.client.hotrod.impl.RemoteCacheImpl.size(RemoteCacheImpl.java:206)
       at com.amentra.jdg6.Viewer.main(Viewer.java:38)


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Alan Field 2014-10-28 15:59:51 UTC
Adding to JDG 6.4.0 ER3 payload

Comment 3 Alan Field 2014-10-28 19:48:31 UTC
From the PR, it looks like this was handled as part of the fix for ISPN-4882

Comment 4 Sebastian Łaskawiec 2014-10-30 08:30:52 UTC
PR: https://github.com/infinispan/jdg/pull/314

Comment 5 Sebastian Łaskawiec 2014-10-30 08:31:17 UTC
PR: https://github.com/infinispan/jdg/pull/313

Comment 6 Vojtech Juranek 2014-11-07 09:29:59 UTC
Size operation now work, however requires ADMIN permission instead of BULK_READ. Marking as verified, as this issue is tracked as BZ #1161479


Note You need to log in before you can comment on or make changes to this bug.