Operational Defect Database

BugZero found this defect 2535 days ago.

MongoDB | 365338

[SERVER-28347] Prohibit updates that cause documents to exceed the depth limit

Last update date:

5/15/2023

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

3.4.4

3.5.5

Description:

Info

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.

Top User Comments

xgen-internal-githook commented on Tue, 4 Apr 2017 15:45:50 +0000: 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 xgen-internal-githook commented on Tue, 28 Mar 2017 21:37:47 +0000: 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 xgen-internal-githook commented on Tue, 28 Mar 2017 20:49:12 +0000: 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 xgen-internal-githook commented on Fri, 24 Mar 2017 17:04:37 +0000: 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

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...