ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1622727 - /webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java
Date Fri, 05 Sep 2014 15:52:21 GMT
Author: coheigea
Date: Fri Sep  5 15:52:21 2014
New Revision: 1622727

URL: http://svn.apache.org/r1622727
Log:
Only match an Encryption action if it contains a ReferenceList

Modified:
    webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java

Modified: webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java?rev=1622727&r1=1622726&r2=1622727&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java
(original)
+++ webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java
Fri Sep  5 15:52:21 2014
@@ -390,7 +390,12 @@ public abstract class WSHandler {
             int act = actInt;
             if (act == WSConstants.SC || act == WSConstants.BST) {
                 continue;
+            } else if (act == WSConstants.ENCR
+                && (result.get(WSSecurityEngineResult.TAG_DATA_REF_URIS) == null
+                    || ((List<?>)result.get(WSSecurityEngineResult.TAG_DATA_REF_URIS)).isEmpty()))
{
+                continue;
             }
+                
             
             if (!recordedActions.remove(actInt)) {
                 return false;



Mime
View raw message