diff --git a/archiva-webapp/src/main/java/org/apache/maven/archiva/web/servlet/repository/RepositoryAccess.java b/archiva-webapp/src/main/java/org/apache/maven/archiva/web/servlet/repository/RepositoryAccess.java index 67e67078e..91e1e97aa 100644 --- a/archiva-webapp/src/main/java/org/apache/maven/archiva/web/servlet/repository/RepositoryAccess.java +++ b/archiva-webapp/src/main/java/org/apache/maven/archiva/web/servlet/repository/RepositoryAccess.java @@ -16,8 +16,6 @@ package org.apache.maven.archiva.web.servlet.repository; * limitations under the License. */ -import it.could.webdav.DAVTransaction; -import it.could.webdav.DAVUtilities; import org.apache.maven.archiva.configuration.Configuration; import org.apache.maven.archiva.configuration.ConfigurationStore; import org.apache.maven.archiva.configuration.ConfigurationStoreException; @@ -35,15 +33,19 @@ import org.codehaus.plexus.security.ui.web.filter.authentication.HttpAuthenticat import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.StringUtils; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import it.could.webdav.DAVTransaction; +import it.could.webdav.DAVUtilities; + import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + /** * RepositoryAccess - access read/write to the repository. * @@ -176,8 +178,8 @@ public class RepositoryAccess { permission = ArchivaRoleConstants.OPERATION_REPOSITORY_UPLOAD; } - - permission += " - " + repoconfig.getId(); + + permission += "-" + repoconfig.getId(); boolean isAuthorized = securitySystem.isAuthorized( securitySession, permission, repoconfig.getId() );