[jboss-jira] [JBoss JIRA] Updated: (JBAS-1703) inspectMBean.jsp throws AccessControlException
Dimitris Andreadis (JIRA)
jira-events at jboss.com
Mon Sep 18 06:16:54 EDT 2006
[ http://jira.jboss.com/jira/browse/JBAS-1703?page=all ]
Dimitris Andreadis updated JBAS-1703:
-------------------------------------
Fix Version/s: JBossAS-4.0.6.CR1
(was: JBossAS-4.0.5.GA)
> inspectMBean.jsp throws AccessControlException
> ----------------------------------------------
>
> Key: JBAS-1703
> URL: http://jira.jboss.com/jira/browse/JBAS-1703
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: JMX
> Affects Versions: JBossAS-4.0.2RC1
> Environment: JBoss Version 4.0.2RC1
> Reporter: Roland R?z
> Priority: Minor
> Fix For: JBossAS-4.0.6.CR1
>
>
> The inspectMBean.jsp page throws a AccessControlException (javax.management.MBeanServerPermission is
> missing) although the codesource from where the JSP servlet is loaded (I use precompiled JSPs) has those
> permission.
> This is the code section where the AccessControlException is thrown
> for(int a = 0; a < attributeInfo.length; a ++)
> {
> final MBeanAttributeInfo attrInfo = attributeInfo[a];
> String attrName = attrInfo.getName();
> String attrType = attrInfo.getType();
> AttrResultInfo attrResult = Server.getMBeanAttributeResultInfo(objectNameString, attrInfo);
> ...
> You should use AccessController.doPrivileged to execute the code
> AttrResultInfo attrResult = Server.getMBeanAttributeResultInfo(objectNameString, attrInfo);
> Regards
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list