Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1091373

Summary: Security manager test QueryAuthorizationTest.testQuery fails
Product: [JBoss] JBoss Data Grid 6 Reporter: Vojtech Juranek <vjuranek>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Gencur <mgencur>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: anistor, jdg-bugs
Target Milestone: CR1   
Target Release: 6.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-26 14:05:20 UTC 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:

Description Vojtech Juranek 2014-04-25 12:48:02 UTC
Please see ISPN-4237.

Comment 2 JBoss JIRA Server 2014-07-25 16:15:36 UTC
Adrian Nistor <anistor> updated the status of jira ISPN-4237 to Resolved

Comment 3 Adrian Nistor 2014-07-25 16:19:42 UTC
This was fixed as part of https://issues.jboss.org/browse/ISPN-4406

Comment 4 Vojtech Juranek 2014-09-05 08:52:52 UTC
Still fails, now with

java.lang.SecurityException: ISPN000287: Unauthorized access: subject 'Subject:
	Principal: TestPrincipal [name=query]
' lacks 'ADMIN' permission
	at org.infinispan.security.impl.AuthorizationHelper.checkPermission(AuthorizationHelper.java:76)
	at org.infinispan.security.impl.AuthorizationManagerImpl.checkPermission(AuthorizationManagerImpl.java:44)
	at org.infinispan.security.impl.SecureCacheImpl.getCacheManager(SecureCacheImpl.java:424)
	at org.infinispan.query.impl.ComponentRegistryUtils.getQueryCache(ComponentRegistryUtils.java:40)
	at org.infinispan.query.impl.SearchManagerImpl.<init>(SearchManagerImpl.java:48)
	at org.infinispan.query.Search.getSearchManager(Search.java:37)
	at org.infinispan.security.QueryAuthorizationTest.queryTest(QueryAuthorizationTest.java:97)
	at org.infinispan.security.QueryAuthorizationTest.access$300(QueryAuthorizationTest.java:32)
	at org.infinispan.security.QueryAuthorizationTest$4.run(QueryAuthorizationTest.java:113)
	at org.infinispan.security.QueryAuthorizationTest$4.run(QueryAuthorizationTest.java:109)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:396)
	at org.infinispan.security.QueryAuthorizationTest.testQuery(QueryAuthorizationTest.java:109)

See e.g. https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/JDG/view/FUNC/job/edg-60-ispn-testsuite-rhel/382/ - fails in every combination of the matrix

Comment 5 JBoss JIRA Server 2014-09-05 12:50:48 UTC
Tristan Tarrant <ttarrant> updated the status of jira ISPN-4237 to Reopened

Comment 6 Adrian Nistor 2014-09-05 15:08:12 UTC
Tristan. I've backported your fix on both jdg branches:

https://github.com/infinispan/jdg/pull/232 , https://github.com/infinispan/jdg/pull/233