Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Test duplicate fields in Mango selector #998
Adds a test to verify the behaviour of duplicate fields in a Mango selector.
The fix for CVE-2017-12635 (#936) resulted in CouchDB's JSON parser only recognising the last instance of duplicated fields in a JSON object. This represents a breaking change to Mango (_find)
This test verifies that Mango now only considers the last instance of a field, silently ignoring
TBD whether we can or should show an error when this occurs, since this leads to predicates
Run the Mango test suite.
Related Issues or Pull Requests