cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1555053 - /cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
Date Fri, 03 Jan 2014 11:30:10 GMT
Author: coheigea
Date: Fri Jan  3 11:30:10 2014
New Revision: 1555053

URL: http://svn.apache.org/r1555053
Log:
Merged revisions 1555051 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1555051 | coheigea | 2014-01-03 11:23:58 +0000 (Fri, 03 Jan 2014) | 2 lines

  [CXF-5480] - Element Id not unique in AbstractBindingBuilder

........

Modified:
    cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java

Modified: cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java?rev=1555053&r1=1555052&r2=1555053&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
Fri Jan  3 11:30:10 2014
@@ -1057,7 +1057,7 @@ public abstract class AbstractBindingBui
             id = idAttr.getValue();
         } else {
             //Add an id
-            id = "Id-" + elem.hashCode();
+            id = wssConfig.getIdAllocator().createId("_", elem);
             String pfx = null;
             try {
                 pfx = elem.lookupPrefix(PolicyConstants.WSU_NAMESPACE_URI);



Mime
View raw message