summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rest
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-02-26 22:12:25 +0000
committerOlivier Lamy <olamy@apache.org>2012-02-26 22:12:25 +0000
commita294aff1b73f7c22e0a443cd7ad22f3850492d1d (patch)
tree8ef00d88435d361dabe7a08738bebcdc34f9c45c /archiva-modules/archiva-web/archiva-rest
parent9ea612361f62f1d4c4b9b094dd210012f1f1b82e (diff)
downloadarchiva-a294aff1b73f7c22e0a443cd7ad22f3850492d1d.tar.gz
archiva-a294aff1b73f7c22e0a443cd7ad22f3850492d1d.zip
fix browse for directories
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293946 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/BrowseService.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/BrowseService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/BrowseService.java
index 758a52c94..89a4ff6b9 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/BrowseService.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/BrowseService.java
@@ -39,28 +39,28 @@ public interface BrowseService
@Path( "rootGroups" )
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
- @RedbackAuthorization( noRestriction = true, noPermission = false )
+ @RedbackAuthorization( noPermission = true, noRestriction = true )
BrowseResult getRootGroups()
throws ArchivaRestServiceException;
@Path( "browseGroupId/{groupId}" )
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
- @RedbackAuthorization( noRestriction = true, noPermission = false )
+ @RedbackAuthorization( noPermission = true, noRestriction = true )
BrowseResult browseGroupId( @PathParam( "groupId" ) String groupId )
throws ArchivaRestServiceException;
@Path( "versionsList/{g}/{a}" )
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
- @RedbackAuthorization( noRestriction = true, noPermission = false )
+ @RedbackAuthorization( noPermission = true, noRestriction = true )
VersionsList getVersionsList( @PathParam( "g" ) String groupId, @PathParam( "a" ) String artifactId )
throws ArchivaRestServiceException;
@Path( "projectVersionMetadata/{g}/{a}" )
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
- @RedbackAuthorization( noRestriction = true, noPermission = false )
+ @RedbackAuthorization( noPermission = true, noRestriction = true )
ProjectVersionMetadata getProjectVersionMetadata( @PathParam( "g" ) String groupId,
@PathParam( "a" ) String artifactId )
throws ArchivaRestServiceException;