]> source.dussan.org Git - archiva.git/commitdiff
bad idea to use a path param for location with /
authorOlivier Lamy <olamy@apache.org>
Tue, 17 Jan 2012 22:35:24 +0000 (22:35 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 17 Jan 2012 22:35:24 +0000 (22:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1232616 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ManagedRepositoriesService.java

index 095b5a090c46d21abf50347648a850af12f3cc42..934274e7335199bd8f62fa318387656dfd8b384c 100644 (file)
@@ -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;