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

Import-ldif NPE if base entry contains invalid attribute values and skipDNValidation is set

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.0
    • Component/s: None
    • Labels:

      Description

      If import-ldif is called with the --skipDNValidation option and the base entry contains errors, a NullPointerException occurs.

      The error can be reproduced with the following LDIF:

      dn: dc=example,dc=com
      objectclass: domain
      c: INVALID
      
      dn: ou=users,dc=example,dc=com
      objectclass: organizationalUnit
      

      Command used to import the ldif

      import-ldif -l /tmp/base.ldif --skipDNValidation -n userRoot
      

      (truncated) output of import-ldif:

      [24/May/2013:15:05:55 +0200] category=JEB severity=SEVERE_ERROR msgID=8650951 msg=The following error was received while processing the dn.dn index: null
      [24/May/2013:15:05:55 +0200] category=TOOLS severity=SEVERE_ERROR msgID=10748000 msg=An error occurred while attempting to process the LDIF import:  Execution error during backend operation: java.lang.NullPointerException
      

        Attachments

          Activity

            People

            • Assignee:
              violette Violette Roche Montane
              Reporter:
              manuelgaupp manuelgaupp
              Dev Assignee:
              Violette Roche Montane
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: