[SERVER-53765] Validate index entries at catalog layer Created: 13/Jan/21  Updated: 28/Feb/23

Status: Backlog
Project: Core Server
Component/s: Catalog
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Backlog - Storage Execution Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-49224 Improve validation of index spec fields Closed
is related to SERVER-74305 APIStrict validation is not performed... Backlog
is related to SERVER-26287 createIndexes should confirm that ind... Closed
is related to SERVER-53739 Validate all createIndexes options Closed
is related to SERVER-54712 createIndexes permits weights for non... Closed
is related to SERVER-52539 Specify input/output to createIndexes... Closed
Assigned Teams:
Storage Execution
Participants:
Case:

 Description   

While implementing SERVER-52539, I noticed that it's possible to create invalid index entries. For example, we can pass {key: {a: 1}, dropDups: "this should be a bool but it's a string"} to createIndexes, and create an invalid entry, which is then returned by listIndexes.

After SERVER-52539, createIndexes will be much stricter at the command-parsing layer. However, perhaps we should consider more validation at the catalog layer as well.



 Comments   
Comment by A. Jesse Jiryu Davis [ 27/Jan/21 ]

Possible dupe of SERVER-49224.

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