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
Date Thu, 21 Aug 2014 06:33:12 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 8ebe5261f -> 913eff1bc


[CXF-5922]remove debug log


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

Branch: refs/heads/master
Commit: 913eff1bcef7c857a800cd6239b7a1104b81bc14
Parents: 8ebe526
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:31:03 2014 +0800

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/913eff1b/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