commit | fa6f013b13060e7c941e5a79b7f80f391be8d32f | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Wed Nov 16 09:51:23 2011 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Wed Nov 16 09:51:23 2011 +0000 |
tree | 007f692820e4ebfe3622f33b2cba39bc59885c89 | |
parent | ab4f4088fc1c373a78ccde495f744019f906a8e1 [diff] |
FELIX-3228 Properly check for CP("*", CONFIGURE) in case the current location is null git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1202608 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationAdapter.java b/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationAdapter.java index f005194..6ba1ca1 100644 --- a/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationAdapter.java +++ b/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationAdapter.java
@@ -74,9 +74,10 @@ delegatee.getConfigurationManager().log( LogService.LOG_DEBUG, "getBundleLocation()", ( Throwable ) null ); // CM 1.4 / 104.13.2.4 - configurationAdmin.checkPermission( delegatee.getBundleLocation() ); + final String bundleLocation = delegatee.getBundleLocation(); + configurationAdmin.checkPermission( ( bundleLocation == null ) ? "*" : bundleLocation ); checkDeleted(); - return delegatee.getBundleLocation(); + return bundleLocation; }