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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M28
    • Fix Version/s: 1.0.0-M29
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              elecharny Emmanuel Lecharny
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: