[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: |