[SERVER-74305] APIStrict validation is not performed for fields in 'indexes' array in createIndex command Created: 23/Feb/23  Updated: 24/Jul/23

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

Type: Bug Priority: Major - P3
Reporter: Projjal Chanda 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-73442 The type of the "bits" field can diff... Backlog
related to SERVER-53765 Validate index entries at catalog layer Backlog
Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

SERVER-73872 fixes the bug of apistrict validation not happening for fields in inner structs in commands. However this issue still remains for fields in 'indexes' array in createIndex command. This is because theĀ 'NewIndexSpec' struct is not parsed and validated by the generated idl code but stored as bsonobj. The bsonobj is manually validated later but the apistrict check for the unstable fields in that struct is not being done.


Generated at Thu Feb 08 06:27:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.