Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 50C9A9E40 for ; Tue, 5 Jun 2012 16:01:13 +0000 (UTC) Received: (qmail 34065 invoked by uid 500); 5 Jun 2012 16:01:13 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 33983 invoked by uid 500); 5 Jun 2012 16:01:13 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 33973 invoked by uid 99); 5 Jun 2012 16:01:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 16:01:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 16:01:11 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1F7802388BF1; Tue, 5 Jun 2012 16:00:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1346449 - /cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java Date: Tue, 05 Jun 2012 16:00:50 -0000 To: commits@cxf.apache.org From: coheigea@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120605160050.1F7802388BF1@eris.apache.org> 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; }