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

gbellato
19.17.2008 186641820dea8b180890b7d1e92e28cd1c87ff8e
Fix for Issue 3618 Control panel : View All Base DS's generates SEVERE ERRORS

For some reason the control panel tries to browse the dc=replicationChanges suffix.
These changes optimize the request done by the control panel and avoid some spurious
error messages when added entries have extensibleObjectclass.
1 files modified
20 ■■■■■ changed files
opends/src/server/org/opends/server/replication/server/ReplicationBackend.java 20 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationBackend.java
@@ -1008,7 +1008,8 @@
      {
        // Add extensibleObject objectclass and the ChangeNumber
        // in the entry.
        entry.addObjectClass(objectclass);
        if (!entry.getObjectClasses().containsKey(objectclass))
          entry.addObjectClass(objectclass);
        Attribute changeNumber =
          Attributes.create(CHANGE_NUMBER, msg.getChangeNumber().toStringUI());
        addAttribute(entry.getUserAttributes(), changeNumber);
@@ -1292,6 +1293,23 @@
        }
      }
    }
    // don't do anything if the search is a base search on
    // the backend suffix.
    try
    {
      DN backendBaseDN = DN.decode(BASE_DN);
      if ( (searchOperation.getScope().equals(SearchScope.BASE_OBJECT)) &&
           (backendBaseDN.equals(searchOperation.getBaseDN())) )
      {
        return;
      }
    }
    catch (Exception e)
    {
      return;
    }
    // Make sure the base entry exists if it's supposed to be in this backend.
    if (!handlesEntry(searchBaseDN))
    {