]> source.dussan.org Git - archiva.git/commitdiff
Correcting authentication bits.
authorJoakim Erdfelt <joakime@apache.org>
Fri, 29 Sep 2006 00:19:12 +0000 (00:19 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Fri, 29 Sep 2006 00:19:12 +0000 (00:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@451069 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp/src/main/java/org/apache/maven/archiva/web/servlet/repository/RepositoryAccess.java

index 67e67078e159e40c93390653926b88c97c6d78fd..91e1e97aab1e1fdc5781dc046f1be64a32be9745 100644 (file)
@@ -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() );