Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 6524 invoked from network); 9 Jan 2009 17:30:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2009 17:30:21 -0000 Received: (qmail 13229 invoked by uid 500); 9 Jan 2009 17:30:21 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 12923 invoked by uid 500); 9 Jan 2009 17:30:20 -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 12912 invoked by uid 99); 9 Jan 2009 17:30:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 09:30:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 17:30:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A1605234C495 for ; Fri, 9 Jan 2009 09:29:59 -0800 (PST) Message-ID: <220933696.1231522199659.JavaMail.jira@brutus> Date: Fri, 9 Jan 2009 09:29:59 -0800 (PST) From: "Chris Anderson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-196) Bug in _all_docs: extra incorrect row returned when ?key= is specified In-Reply-To: <870774971.1231162784181.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662436#action_12662436 ] Chris Anderson commented on COUCHDB-196: ---------------------------------------- After discussing with Damien, it seems the issue is more subtle than we'd appreciated. All-docs will continue to use Erlang binary comparisons instead of unicode collation. This is a tradeoff as write-speed is more important than human-friendly all-docs ordering. However, the current system has a bug, which is that the all-docs http api is trying to use unicode collation on the endkeys, when it should be using binary comparisons. The fix should be relatively simple, but won't yield the exact same behavior for the list of docs as it does for the list of view keys. > Bug in _all_docs: extra incorrect row returned when ?key= is specified > ---------------------------------------------------------------------- > > Key: COUCHDB-196 > URL: https://issues.apache.org/jira/browse/COUCHDB-196 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Reporter: Jason Davies > Attachments: collation_ids.diff, collation_test.2.diff, collation_test.diff, couch_db_updater.diff, docid_collation.diff, view_coll.js > > > I first noticed this when attempting to reverse the order of docs displayed in Futon, when listing the design docs. When the order is reversed, non-design docs are displayed. > After digging deeper I discovered that querying _all_docs with key="Z" can potentially return two rows, with keys "Z" and "a". > I will attach a test case to reproduce this. My locale is set to en_GB.UTF-8, which could be related to this problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.