You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by co...@apache.org on 2009/06/04 16:58:53 UTC
svn commit: r781764 -
/webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java
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