mirror of https://github.com/apache/archiva.git
* 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:
parent
87bdeaecf6
commit
16156a81e4
|
@ -81,6 +81,7 @@ public class RepositoryAccess
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
ACCESS_METHODS = new ArrayList();
|
ACCESS_METHODS = new ArrayList();
|
||||||
|
ACCESS_METHODS.add( "HEAD" );
|
||||||
ACCESS_METHODS.add( "GET" );
|
ACCESS_METHODS.add( "GET" );
|
||||||
ACCESS_METHODS.add( "PROPFIND" );
|
ACCESS_METHODS.add( "PROPFIND" );
|
||||||
ACCESS_METHODS.add( "OPTIONS" );
|
ACCESS_METHODS.add( "OPTIONS" );
|
||||||
|
@ -185,7 +186,9 @@ public class RepositoryAccess
|
||||||
{
|
{
|
||||||
if ( authzResult.getException() != null )
|
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.
|
// Issue HTTP Challenge.
|
||||||
|
|
Loading…
Reference in New Issue