You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2013/08/23 06:02:52 UTC

[jira] [Updated] (DIRAPI-152) Attribute.toString() method appends newline

     [ https://issues.apache.org/jira/browse/DIRAPI-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRAPI-152:
-------------------------------------

    Fix Version/s: 1.0.0-M21
    
> 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
>             Fix For: 1.0.0-M21
>
>
> 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