include decoded length in invalid nested bson validation error message

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.0-rc7, 7.0.13
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • v8.0, v7.0, v6.0, v5.0
    • Execution Team 2024-05-13, Execution Team 2024-05-27
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The BSON validation function ValidateBuffer::_updateFrame() provides an error message that indicates an invalid decoded field length. It may be helpful to also include the decoded length in the message text.

      Additionally, we do not have targeted test coverage for this error in our BSON validation unit tests. The closest we have is BSONValidate::RandomData but this is not ideal.

              Assignee:
              Benety Goh
              Reporter:
              Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: