Bug 1158121

Summary: HR size command broken in cluster mode
Product: [JBoss] JBoss Data Grid 6 Reporter: Alan Field <afield>
Component: ServerAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Gencur <mgencur>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: jdg-bugs, slaskawi, vjuranek
Target Milestone: ER3   
Target Release: 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1168245 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1153109, 1168245    

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