Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M31
    • Fix Version/s: 1.0.0-M32
    • Labels:
      None

      Description

      Hi Team,

      I would like to parse a simple LDIF file in which there's an empty-value attribute like below:

      dn: cn=Steven Nguyen,ou=SAP,dc=sap,dc=local
      changetype: modify
      replace: objectClass
      objectClass: top
      objectClass: user
      objectClass: person
      objectClass: organizationalPerson
      -
      replace: sn
      sn: Nguyen Linh
      -
      replace: url
      -

      I expect the LdifEntry after parsing would have the same but the result is a bit different:

      dn: cn=Steven Nguyen,ou=SAP,dc=sap,dc=local
      changetype: modify
      replace: objectClass
      objectClass: top
      objectClass: user
      objectClass: person
      objectClass: organizationalPerson
      -
      replace: sn
      sn: Nguyen Linh
      -
      replace: url
      url:
      -

      When I send the above LdifEntry to my AD host, it rejects with the error: 00000057: LdapErr: DSID-0C090B8A, comment: Error in attribute conversion operation, data 0, v1db1.
      With my original LDIF file, I could successfully import to AD host (the empty-value attribute will be removed from the entry as expected).

      Could you please have a look at this?

      Best Regards,

      Steven Nguyen

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

        A clear bug...

        We do transform the entry modification with no value (which will result in the deletion of the attribute) but the injection of a null value (which is legal for some AttributeType).

        Here, the LdifReader class is buggy and the LdifEntry.toString() method is buggy, to.

        A fix should not be too complex to implement.

        Thanks for the report !

        Show
        elecharny Emmanuel Lecharny added a comment - A clear bug... We do transform the entry modification with no value (which will result in the deletion of the attribute) but the injection of a null value (which is legal for some AttributeType). Here, the LdifReader class is buggy and the LdifEntry.toString() method is buggy, to. A fix should not be too complex to implement. Thanks for the report !
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Ok, it should be fixed with http://svn.apache.org/r1696953

        Show
        elecharny Emmanuel Lecharny added a comment - Ok, it should be fixed with http://svn.apache.org/r1696953

          People

          • Assignee:
            Unassigned
            Reporter:
            snguyen Steven Nguyen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development