Index Size Validation
Closed this issue · 0 comments
anwalsh commented
Index Size validation as implemented is naive and not correctly validating per the spec here:
The total size of an index entry, which can include structural overhead depending on the BSON type, must be less than 1024 bytes.
The key : value
should be converted to a BSON representation and compared to the 1024 byte limit instead. This would actually validate for indexes exceeding the soft cap on length.
Additional resources: