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:36:27 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes b3d5313c9 -> e3122877e


[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/e3122877
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e3122877
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e3122877

Branch: refs/heads/3.0.x-fixes
Commit: e3122877e57a7d7d243aee0e24a6f2c1785b4176
Parents: b3d5313
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:34:20 2014 +0800

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


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