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

matthew_swift
18.22.2010 40c4d8e54343a6a48b2346455a9b31bb25d26289
Make sure inherited collective attributes are always encapsulated by CollectiveVirtualAttribute
2 files modified
9 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/types/Entry.java 2 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/types/SubEntry.java 7 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/types/Entry.java
@@ -3795,6 +3795,8 @@
              {
                continue;
              }
              collectiveAttr = new CollectiveVirtualAttribute(
                      collectiveAttr);
            }
            else
            {
opendj-sdk/opends/src/server/org/opends/server/types/SubEntry.java
@@ -409,9 +409,10 @@
        {
          for (AttributeValue value : attr)
          {
            this.collectiveAttributes.add(
                    Attributes.empty(
                    value.toString()));
            CollectiveVirtualAttribute collectiveAttr =
              new CollectiveVirtualAttribute(
                Attributes.empty(value.toString()));
            this.collectiveAttributes.add(collectiveAttr);
          }
        }
      }