mirror of https://github.com/apache/archiva.git
Correcting authentication bits.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@451069 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a15006e5a
commit
d74b2c904e
|
@ -16,8 +16,6 @@ package org.apache.maven.archiva.web.servlet.repository;
|
||||||
* limitations under the License.
|
* 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.Configuration;
|
||||||
import org.apache.maven.archiva.configuration.ConfigurationStore;
|
import org.apache.maven.archiva.configuration.ConfigurationStore;
|
||||||
import org.apache.maven.archiva.configuration.ConfigurationStoreException;
|
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.FileUtils;
|
||||||
import org.codehaus.plexus.util.StringUtils;
|
import org.codehaus.plexus.util.StringUtils;
|
||||||
|
|
||||||
import javax.servlet.ServletException;
|
import it.could.webdav.DAVTransaction;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import it.could.webdav.DAVUtilities;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
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.
|
* RepositoryAccess - access read/write to the repository.
|
||||||
*
|
*
|
||||||
|
@ -176,8 +178,8 @@ public class RepositoryAccess
|
||||||
{
|
{
|
||||||
permission = ArchivaRoleConstants.OPERATION_REPOSITORY_UPLOAD;
|
permission = ArchivaRoleConstants.OPERATION_REPOSITORY_UPLOAD;
|
||||||
}
|
}
|
||||||
|
|
||||||
permission += " - " + repoconfig.getId();
|
permission += "-" + repoconfig.getId();
|
||||||
|
|
||||||
boolean isAuthorized = securitySystem.isAuthorized( securitySession, permission, repoconfig.getId() );
|
boolean isAuthorized = securitySystem.isAuthorized( securitySession, permission, repoconfig.getId() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue