MikhailKaduchka opened DATAMONGO-2228 and commented
In version 2.1.* for expression like
{"$and": [{"$or": [{"firstname": "John"}, {"firstname": "Sarah"}]}, {"$or": [{"lastname": "Smith"}, {"lastname": "Connor"}]}]}
MongodbDocumentSerializer.visit method transforms it to
{"$or": [{"lastname": "Smith"}, {"lastname": "Connor"}]}
because it compares entrySets instead of keySets as a result it puts them into a map with the same key
Affects: 2.1.5 (Lovelace SR5)
Referenced from: pull request #661, and commits 2dc7c0e, cd930ea, 9b673d3, 5517198
Backported to: 2.1.6 (Lovelace SR6)