ws-wss4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r781764 - /webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java
Date Thu, 04 Jun 2009 14:58:53 GMT
Author: coheigea
Date: Thu Jun  4 14:58:52 2009
New Revision: 781764

URL: http://svn.apache.org/viewvc?rev=781764&view=rev
Log:
[WSS-196] - Backported to the 1_5_x-fixes branch.

Modified:
    webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java

Modified: webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java?rev=781764&r1=781763&r2=781764&view=diff
==============================================================================
--- webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java (original)
+++ webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java Thu Jun
 4 14:58:52 2009
@@ -48,7 +48,15 @@
     Vector 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