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

Matthew Swift
14.44.2015 8df85caca96d8bb79fcc2cf01cf6ef0a3f06930d
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
@@ -112,8 +112,7 @@
  DN2URI(TreeName treeName, Storage storage, EntryContainer entryContainer)
      throws StorageRuntimeException
  {
    super(treeName, storage, entryContainer);
    super(treeName, storage);
    prefixRDNComponents = entryContainer.getBaseDN().size();
  }
@@ -533,8 +532,7 @@
      try
      {
        // Go up through the DIT hierarchy until we find a referral.
        for (DN dn = entryContainer.getParentWithinBase(targetDN); dn != null;
             dn = entryContainer.getParentWithinBase(dn))
        for (DN dn = getParentWithinBase(targetDN); dn != null; dn = getParentWithinBase(dn))
        {
          // Look for a record whose key matches the current DN.
          if (cursor.positionToKey(toKey(dn)))
@@ -557,6 +555,11 @@
    }
  }
  private DN getParentWithinBase(DN targetDN)
  {
    return targetDN.size() == prefixRDNComponents ? null: targetDN.parent();
  }
  /**
   * Return search result references for a search operation using the referral
   * database to find all referral entries within scope of the search.