cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1529144 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
Date Fri, 04 Oct 2013 12:35:37 GMT
Author: coheigea
Date: Fri Oct  4 12:35:37 2013
New Revision: 1529144

URL: http://svn.apache.org/r1529144
Log:
Only skip action checking on a Fault for a client

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java?rev=1529144&r1=1529143&r2=1529144&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
Fri Oct  4 12:35:37 2013
@@ -279,7 +279,7 @@ public class WSS4JInInterceptor extends 
                 // Create an empty result list to pass into the required validation
                 // methods.
                 wsResult = new ArrayList<WSSecurityEngineResult>();
-                if (doc.getSOAPPart().getEnvelope().getBody().hasFault()) {
+                if (doc.getSOAPPart().getEnvelope().getBody().hasFault() && isRequestor(msg))
{
                     LOG.warning("Request does not contain Security header, " 
                                 + "but it's a fault.");
                     // We allow lax action matching here for backwards compatibility
@@ -860,4 +860,5 @@ public class WSS4JInInterceptor extends 
             return super.getValidator(qName);
         }
     };
+    
 }



Mime
View raw message