Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-1249

UTF-8 encoding problem

    XMLWordPrintableJSON

Details

    Description

      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:

      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

      The correct file should look like this:

      Attachments

        1. image-2020-05-03-10-22-48-997.png
          12 kB
          Andrei
        2. image-2020-04-21-08-55-19-581.png
          9 kB
          Andrei
        3. image-2020-04-21-08-54-33-185.png
          5 kB
          Andrei
        4. image-2020-04-20-18-07-26-199.png
          10 kB
          Andrei
        5. image-2020-04-20-18-06-52-949.png
          16 kB
          Andrei

        Activity

          People

            Unassigned Unassigned
            tehnicaorg Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: