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

include decoded length in invalid nested bson validation error message

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: