ws-wss4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r781762 - /webservices/wss4j/trunk/src/org/apache/ws/security/WSDocInfo.java
Date Thu, 04 Jun 2009 14:54:29 GMT
Author: coheigea
Date: Thu Jun  4 14:54:29 2009
New Revision: 781762

URL: http://svn.apache.org/viewvc?rev=781762&view=rev
Log:
[WSS-196] - STRTransform not compatible with Sun's SAAJ implementation

Modified:
    webservices/wss4j/trunk/src/org/apache/ws/security/WSDocInfo.java

Modified: webservices/wss4j/trunk/src/org/apache/ws/security/WSDocInfo.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/WSDocInfo.java?rev=781762&r1=781761&r2=781762&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/WSDocInfo.java (original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/WSDocInfo.java Thu Jun  4 14:54:29
2009
@@ -51,7 +51,15 @@
     List processors = null;
 
     public WSDocInfo(Document doc) {
-        this.doc = doc;
+        //
+        // This is a bit of a hack. When the Document is a SAAJ SOAPPart instance, it may
+        // be that the "owner" document of any child elements is an internal Document, rather
+        // than the SOAPPart. This is the case for the SUN SAAJ implementation.
+        // This causes problems with STRTransform, as:
+        // WSDocInfoStore.lookup(transformObject.getDocument())
+        // will not work. 
+        //
+        this.doc = doc.getDocumentElement().getOwnerDocument();
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Mime
View raw message