commit | 28f0af2c19310d33053c7d97a6be31e37a966a6d | [log] [tgz] |
---|---|---|
author | Valentin Valchev <vvalchev@apache.org> | Wed Nov 26 09:54:33 2014 +0000 |
committer | Valentin Valchev <vvalchev@apache.org> | Wed Nov 26 09:54:33 2014 +0000 |
tree | 56f02335378bdae08e5418b4ea7391a4ea4fa578 | |
parent | a94b79536e91b493e5ce678884f4a8b91acc3528 [diff] |
Fixed the issue with my previous commit for FELIX-4677 See also https://issues.apache.org/jira/browse/FELIX-4677 git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1641784 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/configuration/ConfigAdminSupport.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/configuration/ConfigAdminSupport.java index bd1aa3c..272a3af 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/configuration/ConfigAdminSupport.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/configuration/ConfigAdminSupport.java
@@ -287,18 +287,19 @@ } } } - + // remove the properties that are not specified in the request + final Dictionary updateProps = new Hashtable(props.size()); for ( Enumeration e = props.keys(); e.hasMoreElements(); ) { final Object key = e.nextElement(); - if ( !propsToKeep.contains(key) ) + if ( propsToKeep.contains(key) ) { - props.remove(key); + updateProps.put(key, props.get(key)); } } - config.update( props ); + config.update( updateProps ); } // redirect to the new configuration (if existing)