Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-226

Injecting non pure ASCII values into a HR attribute read from a LDIF does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0-M28
    • 1.0.0-M29
    • None

    Description

      If we try to parse such an entry :

      dn:: Y249RW1tYW51ZWwgTMOpY2hhcm55LCBkYz1leG1hcGxlLCBkYz1jb20=
      ObjectClass: top
      objectClass: person
      cn:: RW1tYW51ZWwgTMOpY2hhcm55
      sn: elecharny
      

      simply fail when we use a Schema aware LdifReader. At some point, the cn AttributeType value is considered as binary, and the Attribute.add( byte[] ) method refuse to inject the value.

      Not sure if it's not a problem with the LdifParser which does not detect that the cn value is a String and not a byte[].

      Attachments

        Activity

          People

            Unassigned Unassigned
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: