Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5AAA6F28 for ; Sat, 6 Aug 2011 02:04:50 +0000 (UTC) Received: (qmail 91154 invoked by uid 500); 6 Aug 2011 02:04:50 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 90895 invoked by uid 500); 6 Aug 2011 02:04:49 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 90532 invoked by uid 99); 6 Aug 2011 02:04:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2011 02:04:48 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2011 02:04:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1F068AE764 for ; Sat, 6 Aug 2011 02:04:27 +0000 (UTC) Date: Sat, 6 Aug 2011 02:04:27 +0000 (UTC) From: "Jason Smith (JIRA)" To: dev@couchdb.apache.org Message-ID: <1671083684.13498.1312596267123.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <566089212.7229.1311155103705.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1228) Key range error apparently ignores view collation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080330#comment-13080330 ] Jason Smith commented on COUCHDB-1228: -------------------------------------- This bug also prevents a query for all user documents in the _users database. $ curl -i 'localhost:5984/_users/_all_docs?startkey="org.couchdb.user%3a"&endkey="org.couchdb.user%3b"' HTTP/1.1 400 Bad Request Server: CouchDB/1.1.0 (Erlang OTP/R14B02) Date: Sat, 06 Aug 2011 02:03:00 GMT Content-Type: text/plain;charset=utf-8 Content-Length: 133 Cache-Control: must-revalidate {"error":"query_parse_error","reason":"No rows can match your key range, reverse your start_key and end_key or set descending=true"} > Key range error apparently ignores view collation > ------------------------------------------------- > > Key: COUCHDB-1228 > URL: https://issues.apache.org/jira/browse/COUCHDB-1228 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Affects Versions: 1.1 > Environment: Debian > Reporter: Victor Nicollet > Fix For: 1.1.1 > > > I have created a view (no reduce function) with "options":{"collation":"raw"} and emit documents with keys "A", "C" and "b". Running a request on that view with no parameters, I get as expected all three documents in order "A", "C" and "b" as required by the raw collation (instead of "A", "b", "C" for the default ICU collation). > However, when I run a request with start key "B" and end key "a", I expect the "C" document to be returned alone (as "B" < "C" < "a") but couchDB responds: > { "error": "query_parse_error", "reason": "No rows can match your key range, reverse your start_key and end_key or set descending=true" } > This error would make sense if I had been using the default ICU collation, where "B" > "a", but with the raw collation the reverse ("B" > "a") is true. It looks as if the key order warning does not take the view collation into account. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira