You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2016/10/20 11:46:58 UTC

[jira] [Resolved] (FELIX-5384) EventDispatcher#createWhitelistFromHooks fails under security

     [ https://issues.apache.org/jira/browse/FELIX-5384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved FELIX-5384.
------------------------------------
    Resolution: Fixed

Committing to https://svn.apache.org/repos/asf/felix/trunk ...
	R	framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java => framework/src/main/java/org/apache/felix/framework/EventDispatcher.java
	R	framework/src/test/java/org/apache/felix/framework/util/EventDispatcherTest.java => framework/src/test/java/org/apache/felix/framework/EventDispatcherTest.java
	M	framework/src/main/java/org/apache/felix/framework/DTOFactory.java
	M	framework/src/main/java/org/apache/felix/framework/Felix.java
Committed r1765806


> EventDispatcher#createWhitelistFromHooks fails under security
> -------------------------------------------------------------
>
>                 Key: FELIX-5384
>                 URL: https://issues.apache.org/jira/browse/FELIX-5384
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: framework-5.6.0
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: framework-5.8.0
>
>         Attachments: FELIX-5384.patch
>
>
> {code}
> 	Caused by: java.security.AccessControlException: access denied ("org.osgi.framework.AdminPermission" "(id=0)" "context")
> 		at java.security.AccessControlContext.checkPermission(java.base@9-ea/AccessControlContext.java:468) ~[?:?]
> 		at java.security.AccessController.checkPermission(java.base@9-ea/AccessController.java:894) ~[?:?]
> 		at java.lang.SecurityManager.checkPermission(java.base@9-ea/SecurityManager.java:548) ~[?:?]
> 		at org.apache.felix.framework.BundleImpl.getBundleContext(BundleImpl.java:243) ~[?:?]
> 		at org.apache.felix.framework.Felix.getBundleContext(Felix.java:106) ~[?:?]
> 		at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:684) ~[?:?]
> 		at org.apache.felix.framework.util.EventDispatcher.filterListenersUsingHooks(EventDispatcher.java:560) ~[?:?]
> 		at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543) ~[?:?]
> 		at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4558) ~[?:?]
> 		at org.apache.felix.framework.Felix.registerService(Felix.java:3550) ~[?:?]
> 		at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348) ~[?:?]
> 		at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:322) ~[?:?]
> 		at org.apache.felix.cm.impl.ConfigurationManager.start(ConfigurationManager.java:250) ~[?:?]
> 		at org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1709) ~[?:?]
> 		at java.security.AccessController.doPrivileged(java.base@9-ea/Native Method) ~[?:?]
> 		at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:688) ~[?:?]
> 		at org.apache.felix.framework.Felix.activateBundle(Felix.java:2227) ~[?:?]
> 		at org.apache.felix.framework.Felix.startBundle(Felix.java:2145) ~[?:?]
> 		at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
> 		at org.apache.karaf.bundle.command.Restart.doExecute(Restart.java:51) ~[?:?]
> 		... 14 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)