Bug 1091373 - Security manager test QueryAuthorizationTest.testQuery fails
Summary: Security manager test QueryAuthorizationTest.testQuery fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: 6.3.1
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-25 12:48 UTC by Vojtech Juranek
Modified: 2015-01-26 14:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-26 14:05:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-4237 0 Major Resolved Security manager test QueryAuthorizationTest.testQuery fails 2016-04-11 11:58:30 UTC
Red Hat Issue Tracker ISPN-4406 0 Major Resolved Stabilise security manager integration testsuite 2016-04-11 11:58:29 UTC

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


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