You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Richard Sand (JIRA)" <ji...@apache.org> on 2013/07/27 02:49:49 UTC
[jira] [Created] (DIRAPI-152) Attribute.toString() method appends
newline
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