cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gma...@apache.org
Subject svn commit: r643212 - /incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Date Mon, 31 Mar 2008 23:47:25 GMT
Author: gmazza
Date: Mon Mar 31 16:47:22 2008
New Revision: 643212

URL: http://svn.apache.org/viewvc?rev=643212&view=rev
Log:
CXF-1495 Patch from Chris Wolf applied.  Thanks!

Modified:
    incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java

Modified: incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java?rev=643212&r1=643211&r2=643212&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
(original)
+++ incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Mon Mar 31 16:47:22 2008
@@ -134,8 +134,9 @@
                     String authDecoded = new String(Base64Utility.decode(authEncoded));
                     String authInfo[] = authDecoded.split(":");
                     String username = authInfo[0];
-                    String password = authInfo[1];
-                    
+                    // Below line for systems that blank out password after authentication;
+                    // see CXF-1495 for more info
+                    String password = (authInfo.length > 1) ? authInfo[1] : "";
                     AuthorizationPolicy policy = new AuthorizationPolicy();
                     policy.setUserName(username);
                     policy.setPassword(password);



Mime
View raw message