Uploaded image for project: 'Kopano Groupware Core'
  1. Kopano Groupware Core
  2. KC-521

migration-pst: string property incorrectly encoded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 8.3.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      8.3

      Description

      as observed for a private PST, there is a body property which seems incorrectly encoded. it's mostly correct, but there's one sequence in there which is invalid:

      0x3d 0xd8 0xd 0x0

      according to the utf-16 specs, the 0xd83d indicates we start a (4-byte) surrogate pair, but the other two bytes should then be larger than 0xdc00..

      as indicated here, there are sometimes subtle confusions between encodings for surrogate pairs:

      https://en.wikipedia.org/wiki/UTF-16

      so let's just log an error in such cases, decode the parts which can be encoded, and be on our merry way..

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mdufour Mark Dufour
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: