couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-2523) CouchDB 2.0: Specifying startkey/endkey parameters alongside a keys parameter when querying /_all_docs should be invalid
Date Thu, 29 Jan 2015 11:38:34 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14296737#comment-14296737
] 

ASF subversion and git services commented on COUCHDB-2523:
----------------------------------------------------------

Commit 9a8e65099758560b68bcee450ced1d336d0fdbc3 in couchdb-chttpd's branch refs/heads/master
from [~wilhol]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-chttpd.git;h=9a8e650 ]

validate _all_docs query parameters

Perform the same query parameter validation in the clustered interface
for /_all_docs requests as we do in the non-clustered interface.

This closes 19

COUCHDB-2523

Signed-off-by: Alexander Shorin <kxepal@apache.org>


> 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)

Mime
View raw message