Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-439

export-ldif on jeb produces duplicate entries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.5, 2.6.0
    • Fix Version/s: 2.6.0
    • Component/s: backends
    • Labels:
    • Environment:
      All

      Description

      when I specify multiple --includeBranch parameters I get duplicate entries for every --includeBranch that I specify in a particular BaseDN. In other words, between the three branches that I specify, if I am expecting 7 entries to be exported, I get 3 copies the 7 entries.

      https://svn.forgerock.org/opendj/trunk/opends/src/server/org/opends/server/backends/jeb/ExportJob.java

      in the exportLDIF function:
      <snip>
      for (DN includeBranch : includeBranches)
      {
      if (includeBranch.isDescendantOf(baseDN) ||
      includeBranch.isAncestorOf(baseDN))

      { exportContainers.add(entryContainer); }

      }
      <snip>

      I hope I have the right terminology: For multiple includeBranches in the same baseDN, it appears to add the same baseDN to the exportContainers arrayList multiple times. Could this be the problem?

      Brent

        Attachments

          Activity

            People

            Assignee:
            matthew Matthew Swift
            Reporter:
            bpalme bpalme
            Dev Assignee:
            Matthew Swift Matthew Swift
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: