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

Attribute.toString() method appends newline

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M18
    • Fix Version/s: 1.0.0-M21
    • Labels:
      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

            • Assignee:
              elecharny Emmanuel Lecharny
              Reporter:
              rsand Richard Sand
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: