[
https://issues.apache.org/jira/browse/COUCHDB-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Shorin resolved COUCHDB-2523.
---------------------------------------
Resolution: Fixed
> CouchDB 2.0: Specifying startkey/endkey parameters alongside a keys parameter
> when querying /_all_docs should be invalid
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-2523
> URL: https://issues.apache.org/jira/browse/COUCHDB-2523
> Project: CouchDB
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Database Core
> Reporter: Will Holley
>
> 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:
> {code}
> 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`"}
> {code}
> In CouchDB 2.0, there is no such validation:
> {code}
> 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"}}
> ]}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)