[SERVER-19740] Reject documents and queries with empty field names Created: 03/Aug/15  Updated: 03/Aug/15  Resolved: 03/Aug/15

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

Type: Task Priority: Major - P3
Reporter: Qingyang Chen Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-6852 Disallow empty path components in doc... Backlog
Related
related to SERVER-19725 NULL pointer crash in QueryPlanner::p... Closed
Backwards Compatibility: Minor Change
Participants:

 Description   

We should

1) Reject insertion of a document if any of the fields have an empty field name.
2) Reject any query operation where the path includes an empty field name, such as

{'': 5} or {'.a': 5} or {'a.': 5} or {'a..b': 5}



 Comments   
Comment by J Rassi [ 03/Aug/15 ]

Closing as a dup of SERVER-6852.

Comment by Qingyang Chen [ 03/Aug/15 ]

SERVER-19725 broke because we try to obtain the tag from a geoNear MatchExpression that was not set in QueryPlannerIXSelect::rateIndices() because Indexibility::nodeCanUseIndexOnOwnField() returns false for empty path names.

Generated at Thu Feb 08 03:51:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.