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 B54DC17419 for ; Tue, 24 Feb 2015 20:10:19 +0000 (UTC) Received: (qmail 77462 invoked by uid 500); 24 Feb 2015 20:10:05 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 77393 invoked by uid 500); 24 Feb 2015 20:10:05 -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 77380 invoked by uid 99); 24 Feb 2015 20:10:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2015 20:10:05 +0000 Date: Tue, 24 Feb 2015 20:10:04 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-2614) Selectors with {$eq: 'foo', $gte: 'foo'} cause 500 error 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-2614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14335354#comment-14335354 ] ASF subversion and git services commented on COUCHDB-2614: ---------------------------------------------------------- Commit b3032dc23cfed46df4fab2f36e9b8412f2711856 in couchdb-mango's branch refs/heads/tonysun83-start-end-key-issue from [~tonysun83] [ https://git-wip-us.apache.org/repos/asf?p=couchdb-mango.git;h=b3032dc ] Add testcase for empty range Fixes COUCHDB-2614 > Selectors with {$eq: 'foo', $gte: 'foo'} cause 500 error > -------------------------------------------------------- > > Key: COUCHDB-2614 > URL: https://issues.apache.org/jira/browse/COUCHDB-2614 > Project: CouchDB > Issue Type: Bug > Security Level: public(Regular issues) > Components: Mango > Reporter: Nolan Lawson > Assignee: Tony Sun > > Steps to repro in curl: > {code} > MYDB=http://whatever.cloudant.com/somedb > curl "$MYDB/_bulk_docs" -H 'Content-Type: application/json' --data-binary '{"new_edits":true,"docs":[{"name":"mario","_id":"mario","rank":5,"series":"mario","debut":1981},{"name":"jigglypuff","_id":"puff","rank":8,"series":"pokemon","debut":1996},{"name":"link","rank":10,"_id":"link","series":"zelda","debut":1986},{"name":"donkey kong","rank":7,"_id":"dk","series":"mario","debut":1981},{"name":"pikachu","series":"pokemon","_id":"pikachu","rank":1,"debut":1996},{"name":"captain falcon","_id":"falcon","rank":4,"series":"f-zero","debut":1990},{"name":"luigi","rank":11,"_id":"luigi","series":"mario","debut":1983},{"name":"fox","_id":"fox","rank":3,"series":"star fox","debut":1993},{"name":"ness","rank":9,"_id":"ness","series":"earthbound","debut":1994},{"name":"samus","rank":12,"_id":"samus","series":"metroid","debut":1986},{"name":"yoshi","_id":"yoshi","rank":6,"series":"mario","debut":1990},{"name":"kirby","_id":"kirby","series":"kirby","rank":2,"debut":1992}]}' > curl "$MYDB/_index" -H 'Content-Type: application/json' --data-binary '{"index":{"fields":["series"]}}' > curl "$MYDB/_find" -H 'Content-Type: application/json' --data-binary '{"selector":{"$and":[{"series":{"$gte":"mario"}},{"series":{"$eq":"f-zero"}},{"series":{"$eq":"mario"}}]},"fields":["_id"]}' > {code} > The error I get back is: > {code:javascript} > {"error":"function_clause","reason":null,"ref":2609331215} > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)