Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 46779 invoked from network); 25 May 2008 22:02:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 May 2008 22:02:16 -0000 Received: (qmail 53707 invoked by uid 500); 25 May 2008 22:02:18 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 53671 invoked by uid 500); 25 May 2008 22:02:18 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 53660 invoked by uid 99); 25 May 2008 22:02:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 May 2008 15:02:18 -0700 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; Sun, 25 May 2008 22:01:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B19A7234C122 for ; Sun, 25 May 2008 15:01:55 -0700 (PDT) Message-ID: <258783424.1211752915712.JavaMail.jira@brutus> Date: Sun, 25 May 2008 15:01:55 -0700 (PDT) From: "Christopher Lenz (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Resolved: (COUCHDB-43) Calling a non existing view returns 500 and not 404 In-Reply-To: <1262445090.1208465001509.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-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Lenz resolved COUCHDB-43. ------------------------------------- Resolution: Fixed Right, this seems to work okay in trunk, although I'm not sure when it was fixed :/ > Calling a non existing view returns 500 and not 404 > --------------------------------------------------- > > Key: COUCHDB-43 > URL: https://issues.apache.org/jira/browse/COUCHDB-43 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Environment: Linux i386, glibc 2.7 > Reporter: Shahar Evron > > CouchDB built from trunk r. 649204 > When trying to call a non-existing view document the server returns an HTTP 500 message. > It is expected that a 404 message would be returned instead. > Example: > GET /porcupine/_view/wikipage/hierarchy?startkey=%5B%22Home%22%5D&endkey=%5B%22Home%22%2C2%5D HTTP/1.1 > Date: Thu, 17 Apr 08 23:41:36 +0300 > HTTP/1.1 500 Internal Server Error > Transfer-Encoding: chunked > Server: MochiWeb/1.0 (Any of you quaids got a smint?) > Date: Thu, 17 Apr 2008 20:41:36 GMT > Content-Type: text/plain;charset=utf-8 > 9a > {"error":"error","reason":"{{nocatch,{not_found,missing}},\n [{couch_db,open_doc_int,3},\n {couch_db,open_doc,3},\n {couch_view,start_update_loop,4}]}"} > 0 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.