diff options
author | Martin Stockhammer <martin_s@apache.org> | 2017-04-28 00:32:24 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2017-04-28 00:32:24 +0200 |
commit | 9d60ac38326e177b6d078da79270705a9168531a (patch) | |
tree | 4cb014f29a646aa9c5b52f472ddb777bf2718a05 /archiva-modules/archiva-base/archiva-repository-admin | |
parent | 122f5a6d51c14c94a3910ac283cc86de560f408c (diff) | |
download | archiva-9d60ac38326e177b6d078da79270705a9168531a.tar.gz archiva-9d60ac38326e177b6d078da79270705a9168531a.zip |
Fixing redback runtime configuration of list properties
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-admin')
1 files changed, 7 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java index 3da5a37ea..3ce727c71 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java @@ -42,6 +42,7 @@ import javax.annotation.PostConstruct; import javax.inject.Inject; import javax.inject.Named; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.List; @@ -389,6 +390,7 @@ public class DefaultRedbackRuntimeConfigurationAdmin properties.remove( UserConfigurationKeys.LDAP_AUTHENTICATION_METHOD ); properties.remove( UserConfigurationKeys.LDAP_WRITABLE ); properties.remove( UserConfigurationKeys.LDAP_GROUPS_USE_ROLENAME ); + // cleanup groups <-> role mapping /**for ( Map.Entry<String, String> entry : new HashMap<String, String>( properties ).entrySet() ) { @@ -690,10 +692,13 @@ public class DefaultRedbackRuntimeConfigurationAdmin @Override public List<String> getList( String key ) { + RedbackRuntimeConfiguration conf = getRedbackRuntimeConfiguration(); + if (conf.getConfigurationProperties().containsKey(key)) { + return Arrays.asList(conf.getConfigurationProperties().get(key).split(",")); + } + List<String> value = userConfiguration.getList( key ); - RedbackRuntimeConfiguration conf = getRedbackRuntimeConfiguration(); - // TODO concat values conf.getConfigurationProperties().put( key, "" ); try { |