Add explicit size validation where code is currently relying on BSONObj constructor

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • v8.1, v8.0, v7.0
    • Repl 2025-05-12, Repl 2025-05-26, Repl 2025-06-09, Repl 2025-06-23, Repl 2025-07-07, Repl 2025-07-21
    • 200
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The proposed solution for SERVER-84734 is to remove the size validation inside the BSONObj constructor that checks that any BSON object is below the internal limit of 16MB+16KB, and check that it is less than the Buffer Max Limit of 125 MB instead. There are currently several tests across the server that will fail as a result of this change, as they rely on the implicit size check within the constructor

      The code paths being checked in these tests need to be updated to do their own size validation if necessary before/alongside the change is made for SERVER-84734.

              Assignee:
              Ruchitha Rajaghatta
              Reporter:
              Ruchitha Rajaghatta
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: