Andrei created DIRSTUDIO-1249:
---------------------------------

             Summary: UTF-8 encoding problem
                 Key: DIRSTUDIO-1249
                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1249
             Project: Directory Studio
          Issue Type: Bug
    Affects Versions: 2.0.0-M15
         Environment: Windows 10
PingDirectory ( https://www.pingidentity.com/en/software/pingdirectory.html )
            Reporter: Andrei
         Attachments: image-2020-04-20-18-06-52-949.png, 
image-2020-04-20-18-07-26-199.png

A binary value from the LDAP Server is parsed or encoded incorrectly in Apache 
Directory Studio.

The value contains a SMIME Certificate and has the following properties:
 * m-syntax: 1.3.6.1.4.1.1466.115.121.1.5 (binary, 
[https://ldapwiki.com/wiki/1.3.6.1.4.1.1466.115.121.1.5] )
 * m-singleValue: TRUE

The value has in reality 1667 bytes but is reported as binary data with a size 
of 2422 bytes.

I can read the value correctly with a console program (ldapmodify) but I can't 
get the correct value in Apache Directory Studio. I've tried to copy the value 
as base64, export the user as LDIF, and to open with the hex editor and trying 
to save the data).

In the output there are a lot of "EF BF BD" sequences (the UTF-8 encoded 
'Replacement Character') 
[https://www.fileformat.info/info/unicode/char/fffd/index.htm]

!image-2020-04-20-18-06-52-949.png!

The correct file should look like this:

!image-2020-04-20-18-07-26-199.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to