Skip to content

MongodbDocumentSerializer cuts off branches with same Ops in handling Ops.AND [DATAMONGO-2228] #3092

@spring-projects-issues

Description

@spring-projects-issues

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)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions