[SERVER-28347] Prohibit updates that cause documents to exceed the depth limit Created: 16/Mar/17  Updated: 15/May/23  Resolved: 24/Mar/17

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: None
Fix Version/s: 3.4.4, 3.5.5

Type: Bug Priority: Major - P3
Reporter: Kyle Suarez Assignee: Kyle Suarez
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Backport Requested:
v3.4
Sprint: Query 2017-03-27, Query 2017-04-17
Participants:

 Description   

In SERVER-26703, the server began to enforce the BSON depth limit for nested objects and arrays. In addition to rejecting commands that exceed the depth limit, the server should prohibit updates that cause a document to exceed the allowed depth limit.



 Comments   
Comment by Githook User [ 04/Apr/17 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'kyle.suarez@mongodb.com'}

Message: SERVER-28347 enforce storage depth limit for user documents

Introduces a nesting depth limit for document storage, which is lower
than the hard limit for general BSONObjects. Users cannot insert
documents exceeding this limit, nor can they update a document to exceed
it.
Branch: v3.4
https://github.com/mongodb/mongo/commit/8c0ee41fa75c0d7bfce99f035ec76d5e41880359

Comment by Githook User [ 28/Mar/17 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: Revert "SERVER-28347 enforce storage depth limit for user documents"

This reverts commit c7eed05b0a58b265bb65914d4a55dfb2a95d4127.
Branch: v3.4
https://github.com/mongodb/mongo/commit/bdf55b52c1a3586f9ef6db4766727734a9ff2615

Comment by Githook User [ 28/Mar/17 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'kyle.suarez@mongodb.com'}

Message: SERVER-28347 enforce storage depth limit for user documents

Introduces a nesting depth limit for document storage, which is lower
than the hard limit for general BSONObjects. Users cannot insert
documents exceeding this limit, nor can they update a document to exceed
it.

(cherry picked from commit 59bf804f975b8128557215c61ca2447ca630abdc)

Conflicts:
src/mongo/db/ops/insert.cpp
src/mongo/executor/network_interface_asio_integration_fixture.cpp
src/mongo/executor/network_interface_asio_integration_fixture.h
Branch: v3.4
https://github.com/mongodb/mongo/commit/c7eed05b0a58b265bb65914d4a55dfb2a95d4127

Comment by Githook User [ 24/Mar/17 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'kyle.suarez@mongodb.com'}

Message: SERVER-28347 enforce storage depth limit for user documents

Introduces a nesting depth limit for document storage, which is lower
than the hard limit for general BSONObjects. Users cannot insert
documents exceeding this limit, nor can they update a document to exceed
it.
Branch: master
https://github.com/mongodb/mongo/commit/59bf804f975b8128557215c61ca2447ca630abdc

Generated at Thu Feb 08 04:17:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.