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

Entry.toString() shoud not add single quotes around binary values

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M20
    • Fix Version/s: 1.0.0-M21
    • Labels:
      None

      Description

      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 '

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: