Xi Zhang created FELIX-4514: ------------------------------- Summary: Add Permissions file in fileinstaller bundle Key: FELIX-4514 URL: https://issues.apache.org/jira/browse/FELIX-4514 Project: Felix Issue Type: Improvement Components: File Install Affects Versions: fileinstall-3.2.6 Reporter: Xi Zhang
lots of security exception occur on deploying the framework.security bundle together in the container {code} [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:/D:/M2M/2.1.0/m2m-agent-hub/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) {code} General bundle permissions which are required (java.util.PropertyPermission "felix.fileinstall.*" "read") -- This message was sent by Atlassian JIRA (v6.2#6252)