From 3474c6f996a2498a607d3b3655a103afb99beedc Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 17 Jan 2012 22:35:24 +0000 Subject: [PATCH] bad idea to use a path param for location with / git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1232616 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/rest/api/services/ManagedRepositoriesService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ManagedRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ManagedRepositoriesService.java index 095b5a090..934274e73 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ManagedRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ManagedRepositoriesService.java @@ -80,11 +80,11 @@ public interface ManagedRepositoriesService Boolean updateManagedRepository( ManagedRepository managedRepository ) throws ArchivaRestServiceException; - @Path( "fileLocationExists/{fileLocation}" ) + @Path( "fileLocationExists" ) @GET @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } ) @RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION ) - Boolean fileLocationExists( @PathParam( "fileLocation" ) String fileLocation ) + Boolean fileLocationExists( @QueryParam( "fileLocation" ) String fileLocation ) throws ArchivaRestServiceException;