Way to reproduce:
- karaf 4.4.3 (vanilla, with modified system.properties, see below.
- java openjdk version "11.0.12" 2021-07-20
- OS
NAME="Ubuntu"
VERSION_ID="22.04"
more etc/system.properties
...
java.security.policy=${karaf.etc}/all.policy
org.osgi.framework.security=osgi
...
more etc/all.policy
grant {
permission java.security.AllPermission;
};
install mvn:org.apache.felix/org.apache.felix.framework.security
feature:install scr (or any other feature/bundle)
results in logfile:
java.security.AccessControlException: access denied
("java.lang.RuntimePermission"
"getenv.ORG_OPS4J_PAX_URL_MVN_FELIX_FILEINSTALL_FILENAME")