cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1555051 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
Date Fri, 03 Jan 2014 11:23:58 GMT
Author: coheigea
Date: Fri Jan  3 11:23:58 2014
New Revision: 1555051

URL: http://svn.apache.org/r1555051
Log:
[CXF-5480] - Element Id not unique in AbstractBindingBuilder

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java?rev=1555051&r1=1555050&r2=1555051&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
Fri Jan  3 11:23:58 2014
@@ -934,7 +934,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