[jboss-jira] [JBoss JIRA] (WFLY-6478) ServiceMBeanSupportTestCase misses MBeanPermission when run with security manager

Ivo Studensky (JIRA) issues at jboss.org
Tue Apr 12 05:08:01 EDT 2016


     [ https://issues.jboss.org/browse/WFLY-6478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivo Studensky reassigned WFLY-6478:
-----------------------------------

    Assignee: Ivo Studensky  (was: Jan Tymel)


> ServiceMBeanSupportTestCase misses MBeanPermission when run with security manager
> ---------------------------------------------------------------------------------
>
>                 Key: WFLY-6478
>                 URL: https://issues.jboss.org/browse/WFLY-6478
>             Project: WildFly
>          Issue Type: Bug
>          Components: Test Suite
>            Reporter: Jan Tymel
>            Assignee: Ivo Studensky
>
> *org.jboss.as.test.integration.sar.servicembean.ServiceMBeanSupportTestCase#testSarWithServiceMBeanSupport*
> {{./integration-tests.sh -DtestLogToFile=false -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.sar.servicembean.ServiceMBeanSupportTestCase#testSarWithServiceMBeanSupport -Dsecurity.manager}}
> Fails with:
> {code}
> ERROR [org.jboss.as.test.integration.sar.servicembean.TestService] (MSC service thread 1-2) WFLYSYSJMX0009: Initialization failed during postRegister: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("javax.management.MBeanPermission" "org.jboss.as.test.integration.sar.servicembean.TestResultService#CreateServiceInvoked[jboss:name=service-mbean-support-test-result]" "setAttribute")" in code source "(vfs:/content/service-mbean-support-test.sar <no signer certificates>)" of "null")
> 	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:273)
> 	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1830)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1813)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.setAttribute(DefaultMBeanServerInterceptor.java:743)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribute(JmxMBeanServer.java:739)
> 	at org.jboss.as.test.integration.sar.servicembean.TestService.setTestResultMBeanAttribute(TestService.java:73)
> 	at org.jboss.as.test.integration.sar.servicembean.TestService.createService(TestService.java:47)
> 	at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:221)
> 	at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
> 	at org.jboss.system.ServiceMBeanSupport.postRegister(ServiceMBeanSupport.java:372)
> 	at com.sun.jmx.mbeanserver.MBeanSupport.postRegister(MBeanSupport.java:182)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.postRegister(DefaultMBeanServerInterceptor.java:1024)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:974)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
> 	at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.registerMBean(PluggableMBeanServerImpl.java:1527)
> 	at org.jboss.as.jmx.PluggableMBeanServerImpl.registerMBean(PluggableMBeanServerImpl.java:871)
> 	at org.jboss.as.jmx.MBeanRegistrationService.start(MBeanRegistrationService.java:101)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list