Repository: archiva-redback-core
Updated Branches:
  refs/heads/master 1b13cbd01 -> 396694765


add some logs

Signed-off-by: olivier lamy <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/archiva-redback-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/archiva-redback-core/commit/69c41ad3
Tree: http://git-wip-us.apache.org/repos/asf/archiva-redback-core/tree/69c41ad3
Diff: http://git-wip-us.apache.org/repos/asf/archiva-redback-core/diff/69c41ad3

Branch: refs/heads/master
Commit: 69c41ad38b22f02a517453fdea415d5c46c64e6f
Parents: 1b13cbd
Author: olivier lamy <[email protected]>
Authored: Mon May 8 21:17:54 2017 +1000
Committer: olivier lamy <[email protected]>
Committed: Mon May 8 21:17:54 2017 +1000

----------------------------------------------------------------------
 .../rest/services/interceptors/RequestValidationInterceptor.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva-redback-core/blob/69c41ad3/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/interceptors/RequestValidationInterceptor.java
----------------------------------------------------------------------
diff --git 
a/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/interceptors/RequestValidationInterceptor.java
 
b/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/interceptors/RequestValidationInterceptor.java
index b36e8e4..bd824d0 100644
--- 
a/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/interceptors/RequestValidationInterceptor.java
+++ 
b/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/interceptors/RequestValidationInterceptor.java
@@ -285,10 +285,14 @@ public class RequestValidationInterceptor extends 
AbstractInterceptor implements
         enabled = 
config.getBoolean(UserConfigurationKeys.REST_CSRF_ENABLED,true);
         if (!enabled) {
             log.info("CSRF Filter is disabled by configuration");
+        } else {
+            log.info("CSRF Filter is enable");
         }
         checkToken = 
!config.getBoolean(UserConfigurationKeys.REST_CSRF_DISABLE_TOKEN_VALIDATION, 
false);
         if (!checkToken) {
             log.info("CSRF Token validation is disabled by configuration");
+        } else {
+            log.info("CSRF Token validation is enable");
         }
     }
 

Reply via email to