directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Sand (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRAPI-152) Attribute.toString() method appends newline
Date Sat, 27 Jul 2013 00:49:49 GMT
Richard Sand created DIRAPI-152:
-----------------------------------

             Summary: Attribute.toString() method appends newline
                 Key: DIRAPI-152
                 URL: https://issues.apache.org/jira/browse/DIRAPI-152
             Project: Directory Client API
          Issue Type: Bug
    Affects Versions: 1.0.0-M18
            Reporter: Richard Sand
            Priority: Minor


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


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message