[jboss-jira] [JBoss JIRA] (WFLY-5180) InfinispanResourceRefTestCase causes NameNotFoundException with security manager
Dominik Pospisil (JIRA)
issues at jboss.org
Tue Sep 29 09:04:01 EDT 2015
[ https://issues.jboss.org/browse/WFLY-5180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112185#comment-13112185 ]
Dominik Pospisil edited comment on WFLY-5180 at 9/29/15 9:03 AM:
-----------------------------------------------------------------
The reason of the failure is that the org.jboss.as.test.integration.ee.injection.resource.infinispan.InfinispanBean is starting a cache in @PostConstruct:
this.cache = this.container.getCache();
If I change the InfinispanBean so that the cache is injected via the web.xml the way the container is than the issue is gone.
The question is do we support starting caches from user code? If yes, it needs to be executed in a priviledged code (at least part of).
was (Author: dpospisil):
The reason of the failure is that the org.jboss.as.test.integration.ee.injection.resource.infinispan.InfinispanBean is creating a new cache in @PostConstruct:
this.cache = this.container.getCache();
If I change the InfinispanBean so that the cache is injected via the web.xml the way the container is the issue is gone.
The question is do we support creating caches from user code? If yes, it needs to be executed in a priviledged code (at least part of).
> InfinispanResourceRefTestCase causes NameNotFoundException with security manager
> --------------------------------------------------------------------------------
>
> Key: WFLY-5180
> URL: https://issues.jboss.org/browse/WFLY-5180
> Project: WildFly
> Issue Type: Bug
> Components: Test Suite
> Reporter: Marek Kopecký
> Assignee: Paul Ferraro
>
> *Description of problem:*
> InfinispanResourceRefTestCase causes NameNotFoundException with security manager.
> *How reproducible:*
> Always
> *Steps to Reproduce:*
> # ./build.sh -DskipTests -DallTests -Dts.noSmoke
> # ./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2 -DfailIfNoTests=false -Dsecurity.manager -Dts.basic -Dts.noSmoke -Dtest=InfinispanResourceRefTestCase
> *Actual results:*
> {noformat}
> javax.naming.NameNotFoundException: infinispan
> at org.jboss.as.ee.component.ViewManagedReferenceFactory.getReference(ViewManagedReferenceFactory.java:58)
> at org.jboss.as.naming.ServiceBasedNamingStore$1.run(ServiceBasedNamingStore.java:138)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:135)
> at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:83)
> at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207)
> at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:184)
> at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:237)
> at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:193)
> at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:189)
> at javax.naming.InitialContext.lookup(InitialContext.java:417)
> at javax.naming.InitialContext.lookup(InitialContext.java:417)
> at org.jboss.as.test.integration.ee.injection.resource.infinispan.InfinispanResourceRefTestCase.test(InfinispanResourceRefTestCase.java:64)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list