From: Olivier Lamy Date: Tue, 17 Jan 2012 22:35:24 +0000 (+0000) Subject: bad idea to use a path param for location with / X-Git-Tag: archiva-1.4-M3~1562 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3474c6f996a2498a607d3b3655a103afb99beedc;p=archiva.git 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 --- 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;