[SERVER-43334] Disallow additional path components after the positional projection ("$") operator Created: 13/Sep/19  Updated: 29/Oct/23  Resolved: 11/Dec/19

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Task Priority: Major - P3
Reporter: Ian Boros Assignee: Ian Boros
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-6866 Support dotted field past positional ... Backlog
Backwards Compatibility: Minor Change
Sprint: Query 2019-12-16
Participants:

 Description   

Positional projections

a.b.$ 

and 

a.b.$.c 

 

Are treated equivalently. By most, this is considered a bug (see SERVER-6866). We should consider breaking this behavior, and making any positional projection with fields after the '$' illegal.



 Comments   
Comment by Githook User [ 11/Dec/19 ]

Author:

{'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'puppyofkosh'}

Message: SERVER-43334 Ban invalid positional projection syntax
Branch: master
https://github.com/mongodb/mongo/commit/c97f79f0f05698d99ad58478899f622a4181394e

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