mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
06.25.2016 d89c47e7cb1b3c9181e25582539aac1dedb46099
opendj-server-legacy/src/main/java/org/opends/server/crypto/CryptoManagerSync.java
@@ -337,8 +337,8 @@
   */
  private void modifyEntry(Entry srcEntry, Entry dstEntry)
  {
    List<Attribute> srcList = srcEntry.getAttribute(attrCert);
    List<Attribute> dstList = dstEntry.getAttribute(attrCert);
    List<Attribute> srcList = srcEntry.getAllAttributes(attrCert);
    List<Attribute> dstList = dstEntry.getAllAttributes(attrCert);
    // Check for changes to the certificate value.
    if (!srcList.equals(dstList))
@@ -392,7 +392,7 @@
  private void putAttributeTypeIfExist(Map<AttributeType, List<Attribute>> userAttrs, Entry srcEntry,
      AttributeType attrType)
  {
    List<Attribute> attrList = srcEntry.getAttribute(attrType);
    List<Attribute> attrList = srcEntry.getAllAttributes(attrType);
    if (!attrList.isEmpty())
    {
      userAttrs.put(attrType, new ArrayList<>(attrList));