Author: coheigea
Date: Tue Jun  5 16:00:49 2012
New Revision: 1346449

URL: http://svn.apache.org/viewvc?rev=1346449&view=rev
Log:
Fixing a problem with not retaining a namespace definition from a parent element

Modified:
    
cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java

Modified: 
cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java
URL: 
http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java?rev=1346449&r1=1346448&r2=1346449&view=diff
==============================================================================
--- 
cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java
 (original)
+++ 
cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java
 Tue Jun  5 16:00:49 2012
@@ -129,7 +129,7 @@ public class SAMLSSOResponseValidator {
         validatorResponse.setSessionNotOnOrAfter(sessionNotOnOrAfter);
         // the assumption for now is that SAMLResponse will contain only a 
single assertion
         Element assertionElement = 
samlResponse.getAssertions().get(0).getDOM();
-        
validatorResponse.setAssertion(DOM2Writer.nodeToString(assertionElement));
+        
validatorResponse.setAssertion(DOM2Writer.nodeToString(assertionElement.cloneNode(true)));
         return validatorResponse;
     }
     


Reply via email to