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

Valery Kharseko
30.54.2024 be3f8e0f16dcd056915bd9279bc33fca929b1c72
[#187] FIX RFC3671: collective attribute values should be merged. Virtuals with other virtuals and real values. (#365)

1 files modified
5 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/types/Entry.java 5 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/types/Entry.java
@@ -13,6 +13,7 @@
 *
 * Copyright 2006-2010 Sun Microsystems, Inc.
 * Portions Copyright 2011-2016 ForgeRock AS.
 * Portions Copyright 2023-2024 3A Systems, LLC.
 */
package org.opends.server.types;
@@ -3027,9 +3028,7 @@
  {
    if (attrList.get(0).isVirtual())
    {
      // The existing attribute is already virtual,
      // so we've got a different conflict, but we'll let the first win.
      // FIXME -- Should we handle this differently?
      attrList.add(collectiveAttr);
      return;
    }