* Adding HEAD as ACCESS only method.

* Removing full stacktrace on authz denied logging.
* Adding remote ip address on authz denied.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@468513 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joakim Erdfelt 2006-10-27 20:02:35 +00:00
parent 87bdeaecf6
commit 16156a81e4
1 changed files with 4 additions and 1 deletions

View File

@ -81,6 +81,7 @@ public class RepositoryAccess
static
{
ACCESS_METHODS = new ArrayList();
ACCESS_METHODS.add( "HEAD" );
ACCESS_METHODS.add( "GET" );
ACCESS_METHODS.add( "PROPFIND" );
ACCESS_METHODS.add( "OPTIONS" );
@ -185,7 +186,9 @@ public class RepositoryAccess
{
if ( authzResult.getException() != null )
{
getLogger().warn( "Authorization Denied", authzResult.getException() );
getLogger().warn( "Authorization Denied [ip=" + request.getRemoteAddr() + ",isWriteRequest="
+ isWriteRequest + ",permission=" + permission + "] : "
+ authzResult.getException().getMessage() );
}
// Issue HTTP Challenge.