From 0e9352150a8f326d51c8317c5e8eefe8408bd408 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Tue, 12 Jan 2021 23:36:37 +0100 Subject: Adding cache configuration --- .../archiva/rest/services/v2/DefaultSecurityConfigurationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-services') diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/v2/DefaultSecurityConfigurationService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/v2/DefaultSecurityConfigurationService.java index f059613c0..d5a435bf9 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/v2/DefaultSecurityConfigurationService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/v2/DefaultSecurityConfigurationService.java @@ -596,7 +596,7 @@ public class DefaultSecurityConfigurationService implements SecurityConfiguratio } @Override - public Response updateCacheConfiguration( CacheConfiguration cacheConfiguration ) throws ArchivaRestServiceException + public CacheConfiguration updateCacheConfiguration( CacheConfiguration cacheConfiguration ) throws ArchivaRestServiceException { if ( cacheConfiguration == null ) { @@ -610,7 +610,7 @@ public class DefaultSecurityConfigurationService implements SecurityConfiguratio log.debug( "getRedbackRuntimeConfiguration -> {}", redbackRuntimeConfiguration ); updateConfig( cacheConfiguration, redbackRuntimeConfiguration ); redbackRuntimeConfigurationAdmin.updateRedbackRuntimeConfiguration( redbackRuntimeConfiguration ); - return Response.ok( ).build( ); + return getCacheConfiguration( ); } catch ( RepositoryAdminException e ) { -- cgit v1.2.3