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

Attribute.toString() method appends newline

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0-M18
    • 1.0.0-M21
    • None

    Description

      For a single-valued attribute Attribute.get(..).getString() properly returns the value whereas Attribute.get(..).toString() is appending a newline character. I'm guessing that this is extraneous.

      I have an Entry that is a groupOfUniqueNames:

      System.out.println("Group " + nextgroup.get("cn") + " found") produces the output

      Group sysAdmin
      found

      where System.out.println("Group " + nextgroup.get("cn").getString() + " found") produces the output:

      Group sysAdmin found

      Attachments

        Activity

          People

            elecharny Emmanuel Lécharny
            rsand Richard Sand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: