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

Add Permissions file in fileinstaller bundle

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • fileinstall-3.2.6
    • None
    • File Install
    • None

    Description

      lots of security exception occur on deploying the framework.security bundle together in the container

      [CM Event Dispatcher (Fire ConfigurationEvent: pid=org.ops4j.pax.logging)] ERROR org.apache.felix.configadmin - Unexpected problem delivering configuration event to [org.osgi.service.cm.ConfigurationListener, org.apache.felix.fileinstall.ArtifactListener, org.apache.felix.fileinstall.ArtifactInstaller, id=29, bundle=26/file:/osgi/./system/platform/org.apache.felix.fileinstall-3.2.6.jar]
      java.security.AccessControlException: access denied ("java.util.PropertyPermission" "felix.fileinstall.enableConfigSave" "read")
      	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
      	at java.security.AccessController.checkPermission(AccessController.java:559)
      	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
      	at org.apache.felix.framework.BundleContextImpl.getProperty(BundleContextImpl.java:102)
      	at org.apache.felix.fileinstall.internal.ConfigInstaller.shouldSaveConfig(ConfigInstaller.java:171)
      	at org.apache.felix.fileinstall.internal.ConfigInstaller.configurationEvent(ConfigInstaller.java:101)
      	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:2043)
      	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:2013)
      	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
      	at java.lang.Thread.run(Thread.java:744)
      

      General bundle permissions which are required
      (java.util.PropertyPermission "felix.fileinstall.*" "read")

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              taotao100 Xi Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: