[SERVER-55457] Disallow dotted metaField when parsing $_internalUnpackBucket Created: 23/Mar/21  Updated: 29/Oct/23  Resolved: 30/Mar/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Hana Pearlman Assignee: Hana Pearlman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query Optimization 2021-04-05
Participants:

 Description   

The metaField is not intended to be an arbitrary path. We should uassert in the $_internalUnpackBucket parser if the user-specified metaField is a dotted path, and we should add a test to verify this behavior in document_source_internal_unpack_bucket_test/unpack_bucket_exec_test.cpp



 Comments   
Comment by Githook User [ 30/Mar/21 ]

Author:

{'name': 'Hana Pearlman', 'email': 'hana.pearlman@mongodb.com'}

Message: SERVER-55457: Disallow dotted metaField when parsing $_internalUnpackBucket
Branch: master
https://github.com/mongodb/mongo/commit/7962b4d46c1f408f8fda70b1445ffadac1c363e5

Generated at Thu Feb 08 05:36:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.