Bug 1091373
| Summary: | Security manager test QueryAuthorizationTest.testQuery fails | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 6 | Reporter: | Vojtech Juranek <vjuranek> |
| Component: | Infinispan | Assignee: | Tristan Tarrant <ttarrant> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Gencur <mgencur> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.3.0 | CC: | 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
Adrian Nistor <anistor> updated the status of jira ISPN-4237 to Resolved This was fixed as part of https://issues.jboss.org/browse/ISPN-4406 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 Tristan Tarrant <ttarrant> updated the status of jira ISPN-4237 to Reopened Tristan. I've backported your fix on both jdg branches: https://github.com/infinispan/jdg/pull/232 , https://github.com/infinispan/jdg/pull/233 |