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

LdifUtils.convertToLdif(LdifEntry, int) does not honor the 'length' parameter fully

    Details

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

      Description

      Calling LdifUtils.convertToLdif(<LdifEntry instance>, Integer.MAX_VALUE)
      returns Ldif data that is wrapped at 80 characters.

      Digging in, I discovered that at line 508 of org.apache.directory.api.ldap.model.ldif.LdifUtils, convertToLdif(Attribute) is being called instead of convertToLdif(Attribute, int).

      When I made a copy of LdifUtils, and changed that line, the generated Ldif data was no longer wrapped at 80 characters.

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

        Good catch !

        Fixed with http://svn.apache.org/r1696644

        Thanks !

        Show
        elecharny Emmanuel Lecharny added a comment - Good catch ! Fixed with http://svn.apache.org/r1696644 Thanks !

          People

          • Assignee:
            Unassigned
            Reporter:
            adam_steiner Adam Steiner
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development