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
This commit is contained in:
Olivier Lamy 2012-01-17 22:35:24 +00:00
parent 58c30c851d
commit 3474c6f996
1 changed files with 2 additions and 2 deletions

View 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;