cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1390604 - /cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Date Wed, 26 Sep 2012 17:05:28 GMT
Author: dkulp
Date: Wed Sep 26 17:05:28 2012
New Revision: 1390604

URL: http://svn.apache.org/viewvc?rev=1390604&view=rev
Log:
Merged revisions 1390600 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1390600 | dkulp | 2012-09-26 12:56:17 -0400 (Wed, 26 Sep 2012) | 2 lines

  If the Basic auth stuff is not valid, but a principal was provided, use it.

........

Modified:
    cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java

Modified: cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java?rev=1390604&r1=1390603&r2=1390604&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
(original)
+++ cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Wed Sep 26 17:05:28 2012
@@ -169,9 +169,10 @@ public abstract class AbstractHTTPDestin
                 policy.setAuthorizationType(authType);
                 return policy;
             } catch (Base64Exception ex) {
-                // Invalid authentication => treat as not authenticated
+                // Invalid authentication => treat as not authenticated or use the Principal
             }
-        } else if (pp != null) {
+        } 
+        if (pp != null) {
             AuthorizationPolicy policy = new PrincipalAuthorizationPolicy(pp);
             policy.setUserName(pp.getName());
             policy.setAuthorization(credentials);



Mime
View raw message