Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5384

EventDispatcher#createWhitelistFromHooks fails under security

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: framework-5.6.0
    • Fix Version/s: framework-5.6.1
    • Component/s: None
    • Labels:
      None

      Description

      	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
      

        Attachments

        1. FELIX-5384.patch
          3 kB
          Karl Pauls

          Issue Links

            Activity

              People

              • Assignee:
                gnodet Guillaume Nodet
                Reporter:
                gnodet Guillaume Nodet
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: