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

writeValueToStream() should truncate large strings and large BinData values

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • Query 2020-10-19, Query 2020-11-02

      The goals of this task are as follows:

      1. Update writeValueToStream() to actually print out the contents of a bsonBinData (instead of just printing out "---===*** bsonBinData ***===—"), similar to what BSONElement::toString() does.
      2. Update writeValueToStream() to truncate StringBig, bsonString, and bsonBinData values, similar to what BSONElement::toString() does.
      3. If appropriate, add a unittest to test out using writeValueToStream() to print out StringSmall, StringBig, bsonString, and bsonBinData values.

       

            Assignee:
            melodee.li@mongodb.com Melodee Li
            Reporter:
            andrew.paroski@mongodb.com Drew Paroski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: