Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
CouchDB 1.X validates that the combination of query parameters to _all_docs is valid. For instance, you cannot specify keys and also startkey/endkey:
curl -g -XGET 'http://127.0.0.1:5984/testdb/_all_docs?keys=["a"]&startkey="a"' {"error":"query_parse_error","reason":"`keys` is incompatible with `key`, `start_key` and `end_key`"}
In CouchDB 2.0, there is no such validation:
curl -g -XGET 'http://127.0.0.1:15984/testdb/_all_docs?keys=["a"]&startkey="a"' {"total_rows":5,"rows":[ {"id":"a","key":"a","value":{"rev":"1-4c6114c65e295552ab1019e2b046b10e"}} ]}