You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2012/03/11 17:28:09 UTC

svn commit: r1299389 - /axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/client/STSClient.java

Author: veithen
Date: Sun Mar 11 16:28:08 2012
New Revision: 1299389

URL: http://svn.apache.org/viewvc?rev=1299389&view=rev
Log:
Fixed an issue in STSClient: the comment on the code says "Copy over the elements from the template", but it was actually _moving_ the elements.

Modified:
    axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/client/STSClient.java

Modified: axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/client/STSClient.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/client/STSClient.java?rev=1299389&r1=1299388&r2=1299389&view=diff
==============================================================================
--- axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/client/STSClient.java (original)
+++ axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/client/STSClient.java Sun Mar 11 16:28:08 2012
@@ -682,7 +682,7 @@ public class STSClient {
             Iterator templateChildren = rstTemplate.getChildElements();
             while (templateChildren.hasNext()) {
                 OMElement child = (OMElement) templateChildren.next();
-                rst.addChild(child);
+                rst.addChild(child.cloneOMElement());
                 //Look for the key size element
                 if (child.getQName().equals(
                         new QName(TrustUtil.getWSTNamespace(this.version),