Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] java.Security.AccessControlException because of org.osgi.service.event.TopicPermission is missing

This looks like bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=284505 but from your stack trace it looks like the useradmin bundle was not granted the necessary topic permission. So even if this bug was fixed in useradmin by protecting calls to eventadmin with proper doPrivs I suspect a security exception would still be thrown.

Can you move this discussion to that bug report including steps to reproduce?

Tom



Inactive hide details for "David Conde" ---09/10/2009 03:41:02 AM---Hi, I have launched Equinox 3.4 with security and I got the"David Conde" ---09/10/2009 03:41:02 AM---Hi, I have launched Equinox 3.4 with security and I got the next Exception:


From:

"David Conde" <dconde@xxxxxxxx>

To:

"'Equinox development mailing list'" <equinox-dev@xxxxxxxxxxx>

Date:

09/10/2009 03:41 AM

Subject:

[equinox-dev] java.Security.AccessControlException because of org.osgi.service.event.TopicPermission is missing




Hi, I have launched Equinox 3.4 with security and I got the next Exception:


2009-09-10 10:34:18.515 Log WarningA UserAdminListener threw an Exception
{org.osgi.service.useradmin.UserAdmin}={service.description=OSGi User Admin serv
ice - IBM Implementation, service.pid=org.eclipse.equinox.internal.useradmin.Act
ivator, service.vendor=IBM, service.id=32}
java.security.AccessControlException: access denied (org.osgi.service.event.Topi
cPermission org/osgi/service/useradmin/UserAdmin/ROLE_CHANGED publish)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager.int
ernalCheckPermission(FrameworkSecurityManager.java:119)
at org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager$Che
ckPermissionAction.run(FrameworkSecurityManager.java:84)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager.che
ckPermission(FrameworkSecurityManager.java:90)
at org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager.che
ckPermission(FrameworkSecurityManager.java:219)
at org.eclipse.equinox.internal.event.EventAdminImpl.checkTopicPermissio
nPublish(EventAdminImpl.java:153)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(Event
AdminImpl.java:105)
at org.eclipse.equinox.internal.event.EventAdminImpl.postEvent(EventAdmi
nImpl.java:70)
at org.eclipse.equinox.internal.useradmin.UserAdminEventAdapter.roleChan
ged(UserAdminEventAdapter.java:106)
at org.eclipse.equinox.internal.useradmin.UserAdminEventProducer.dispatc
hEvent(UserAdminEventProducer.java:136)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:211)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:321)
2009-09-10 10:34:18.562 Log WarningA UserAdminListener threw an Exception
{org.osgi.service.useradmin.UserAdmin}={service.description=OSGi User Admin serv
ice - IBM Implementation, service.pid=org.eclipse.equinox.internal.useradmin.Act
ivator, service.vendor=IBM, service.id=32}
java.security.AccessControlException: access denied (org.osgi.service.event.Topi
cPermission org/osgi/service/useradmin/UserAdmin/ROLE_CHANGED publish)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager.int
ernalCheckPermission(FrameworkSecurityManager.java:119)
at org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager$Che
ckPermissionAction.run(FrameworkSecurityManager.java:84)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager.che
ckPermission(FrameworkSecurityManager.java:90)
at org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager.che
ckPermission(FrameworkSecurityManager.java:219)
at org.eclipse.equinox.internal.event.EventAdminImpl.checkTopicPermissio
nPublish(EventAdminImpl.java:153)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(Event
AdminImpl.java:105)
at org.eclipse.equinox.internal.event.EventAdminImpl.postEvent(EventAdmi
nImpl.java:70)
at org.eclipse.equinox.internal.useradmin.UserAdminEventAdapter.roleChan
ged(UserAdminEventAdapter.java:106)
at org.eclipse.equinox.internal.useradmin.UserAdminEventProducer.dispatc
hEvent(UserAdminEventProducer.java:136)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:211)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:321)

I can continue running my bundles after this without any problem, but I would like to know why I am getting this Exception, or know if this is a bug.

Thanks_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


GIF image

GIF image


Back to the top