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: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • Execution Team 2024-05-13

      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: