cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject git commit: [CXF-5922]remove debug log (cherry picked from commit 913eff1bcef7c857a800cd6239b7a1104b81bc14)
Date Thu, 21 Aug 2014 06:37:28 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes e7dae9b2f -> 2314106f6


[CXF-5922]remove debug log
(cherry picked from commit 913eff1bcef7c857a800cd6239b7a1104b81bc14)


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2314106f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2314106f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2314106f

Branch: refs/heads/2.7.x-fixes
Commit: 2314106f64d96f90ea434115cb43006d133a60b2
Parents: e7dae9b
Author: Freeman Fang <freeman.fang@gmail.com>
Authored: Thu Aug 21 14:31:03 2014 +0800
Committer: Freeman Fang <freeman.fang@gmail.com>
Committed: Thu Aug 21 14:37:04 2014 +0800

----------------------------------------------------------------------
 .../cxf/transport/http/auth/WSDLGetAuthenticatorInterceptor.java | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/2314106f/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/WSDLGetAuthenticatorInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/WSDLGetAuthenticatorInterceptor.java
b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/WSDLGetAuthenticatorInterceptor.java
index ffff019..263bba0 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/WSDLGetAuthenticatorInterceptor.java
+++ b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/WSDLGetAuthenticatorInterceptor.java
@@ -70,14 +70,11 @@ public class WSDLGetAuthenticatorInterceptor extends AbstractPhaseInterceptor<Me
             if (!StringUtils.isEmpty(contextName)) {
                 AuthorizationPolicy policy = message.get(AuthorizationPolicy.class);
                 if (policy == null) {
-                    //should return 401
-                    LOG.info("=====> no authorization header, should return 401");
                     handle401response(message, endpoint);
                     return;
                 } else {
                     Subject subject = (Subject)authenticate(policy.getUserName(), policy.getPassword());
                     if (subject == null) {
-                        LOG.info("=====> login failed, should return 401");
                         handle401response(message, endpoint);
                         return;
                     }
@@ -93,7 +90,6 @@ public class WSDLGetAuthenticatorInterceptor extends AbstractPhaseInterceptor<Me
         response.setHeader(HEADER_WWW_AUTHENTICATE, AUTHENTICATION_SCHEME_BASIC + " realm=\""
+ contextName + "\"");
         response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
         response.setContentLength(0);
-        LOG.info("=====> reset response header");
         message.getInterceptorChain().pause();
     }
 


Mime
View raw message