SERVER-132517ClosedFixed

Reject duplicate keys in CSFLE encryption schema tree

Duplicate keys are valid in $jsonSchema, but are not handled in CSFLE processing. Multiple `properties` keys of the same name are processed with a "last-wins" map assignment during encryption schema tree construction (`_propertiesChildren[std::string\\{nextChild}] = std::move(node);` in `addChild()` in `encryption_schema_tree.cpp`).  Similarly, multiple `patternProperties` nodes with identical regex are currently processed with a "first-wins" std::set insert in `addPatternPropertiesChild()

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10258.3.169.0.78.0.377.0.48
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkp