directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran Ayyagari (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DIRAPI-171) Entry.toString() shoud not add single quotes around binary values
Date Thu, 27 Feb 2014 07:50:20 GMT

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

Kiran Ayyagari resolved DIRAPI-171.
-----------------------------------

    Resolution: Fixed
      Assignee: Kiran Ayyagari

Fixed here http://svn.apache.org/r1572459

> Entry.toString() shoud not add single quotes around binary values
> -----------------------------------------------------------------
>
>                 Key: DIRAPI-171
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-171
>             Project: Directory Client API
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-M20
>            Reporter: Emmanuel Lecharny
>            Assignee: Kiran Ayyagari
>             Fix For: 1.0.0-RC1
>
>
> Currently, when creating an entry with binary attributes, a call to toString() on this
method will return the values surrounded with quotes :
>         Entry entry = new
>             DefaultEntry("uid=netbeans,ou=customer_service,ou=employees,dc=example,dc=com",
>                             "cn: netbeans",
>                             "sn: netbeans",
>                             "givenName::" + new String( Base64.encode( Strings.getBytesUtf8(
"范" ) ) ),
> ...
>         System.out.println( entry );
> will produce :
> Entry
>     dn: uid=netbeans,ou=customer_service,ou=employees,dc=example,dc=com
>     objectclass: inetOrgPerson
>     objectclass: organizationalPerson
>     objectclass: person
>     objectclass: top
>     mail: test@test.com
>     givenname: '0xE8 0x8C 0x83 '



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message