Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7506

RamLog and standard log should preserve utf8 encoding when truncating

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.0.7, 2.2.0
    • Component/s: Logging
    • None

      RamLog::write() only copies the first 255 bytes of a long string, but if the last two bytes are part of a utf-8 encoding (e.g. 0xd0 0x80), a RamLog consumer may spuriously fail to validate the string is utf-8.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            benjamin.becker Ben Becker
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: