Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 14201 invoked from network); 22 Jul 2010 14:49:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Jul 2010 14:49:48 -0000 Received: (qmail 20310 invoked by uid 500); 22 Jul 2010 14:49:47 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 20148 invoked by uid 500); 22 Jul 2010 14:49:47 -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 20140 invoked by uid 99); 22 Jul 2010 14:49:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 14:49:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 14:49:43 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6MEfpMF028826 for ; Thu, 22 Jul 2010 14:41:52 GMT Message-ID: <2264977.518901279809711930.JavaMail.jira@thor> Date: Thu, 22 Jul 2010 10:41:51 -0400 (EDT) From: "Chris Anderson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Closed: (COUCHDB-831) badarity In-Reply-To: <22508448.517361279805390967.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Anderson closed COUCHDB-831. ---------------------------------- Resolution: Fixed added a proper 404 message in r966685 > badarity > -------- > > Key: COUCHDB-831 > URL: https://issues.apache.org/jira/browse/COUCHDB-831 > Project: CouchDB > Issue Type: Bug > Affects Versions: 1.0 > Environment: mac os x > Reporter: Harry Vangberg > > I have an empty database with nothing but this design document: > { > "_id": "_design/foo", > "_rev": "1-19b6ac05cd5e878bbe8193c3fbce57bb", > "language": "javascript", > "views": { > "foo": { > "map": "function(doc) {emit(1,2);}" > } > } > } > Which fails miserably. > $ curl http://127.0.0.1:5984/argh/_design/foo/_views/bar > [Thu, 22 Jul 2010 13:27:53 GMT] [error] [<0.1015.0>] Uncaught error in HTTP request: {error, > {badarity, > {#Fun, > [{httpd, > {mochiweb_request,#Port<0.2266>,'GET', > "/argh/_design/foo/_views/bar", > {1,1}, > {3, > {"user-agent", > {'User-Agent', > "curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3"}, > {"host", > {'Host',"127.0.0.1:5984"}, > {"accept",{'Accept',"*/*"},nil,nil}, > nil}, > nil}}}, > "127.0.0.1",'GET', > [<<"argh">>,<<"_design">>,<<"foo">>, > <<"_views">>,<<"bar">>], > {dict,5,16,16,8,80,48, > {[],[],[],[],[],[],[],[],[],[],[],[],[], > [],[],[]}, > {{[[<<"_design">>| > #Fun]], > [], > [[<<"_view_cleanup">>| > #Fun]], > [],[],[],[],[], > [[<<"_compact">>| > #Fun]], > [],[], > [[<<"_temp_view">>| > #Fun]], > [[<<"_changes">>| > #Fun]], > [],[],[]}}}, > {user_ctx,null, > [<<"_admin">>], > <<"{couch_httpd_auth, default_authentication_handler}">>}, > undefined, > {dict,6,16,16,8,80,48, > {[],[],[],[],[],[],[],[],[],[],[],[],[], > [],[],[]}, > {{[], > [[<<"_show">>| > #Fun]], > [[<<"_info">>| > #Fun], > [<<"_list">>| > #Fun]], > [[<<"_update">>| > #Fun]], > [],[],[],[],[], > [[<<"_rewrite">>| > #Fun]], > [],[],[], > [[<<"_view">>| > #Fun]], > [],[]}}}, > undefined,#Fun, > {dict,13,16,16,8,80,48, > {[],[],[],[],[],[],[],[],[],[],[],[],[], > [],[],[]}, > {{[[<<"_restart">>| > #Fun], > [<<"_replicate">>| > #Fun]], > [[<<"_active_tasks">>| > #Fun]], > [],[], > [[<<"_utils">>| > #Fun], > [<<"/">>|#Fun], > [<<"_config">>| > #Fun]], > [[<<"_log">>| > #Fun]], > [],[], > [[<<"_all_dbs">>| > #Fun]], > [], > [[<<"_stats">>| > #Fun], > [<<"favicon.ico">>| > #Fun]], > [[<<"_session">>| > #Fun], > [<<"_uuids">>| > #Fun]], > [],[], > [[<<"_oauth">>| > #Fun]], > []}}}}, > {db,<0.519.0>,<0.520.0>,nil, > <<"1279804768334890">>,<0.517.0>, > <0.521.0>, > {db_header,5,0,0,nil,nil,nil,0,nil,nil, > 1000}, > 0, > {btree,<0.517.0>, > {220,{1,0}}, > #Fun, > #Fun, > #Fun, > #Fun}, > {btree,<0.517.0>, > {309,1}, > #Fun, > #Fun, > #Fun, > #Fun}, > {btree,<0.517.0>,nil, > #Fun, > #Fun, > #Fun,nil}, > 1,<<"argh">>, > "/usr/local/var/lib/couchdb/argh.couch", > [],[],nil, > {user_ctx,null, > [<<"_admin">>], > <<"{couch_httpd_auth, default_authentication_handler}">>}, > #Ref<0.0.0.2873>,1000, > [before_header,after_header,on_file_open], > false}, > {doc,<<"_design/foo">>, > {1, > [<<25,182,172,5,205,94,135,139,190,129, > 147,195,251,206,87,187>>]}, > {[{<<"language">>,<<"javascript">>}, > {<<"views">>, > {[{<<"foo">>, > {[{<<"map">>, > <<"function(doc) {emit(1,2);}">>}]}}]}}]}, > [],false,[]}]}}} > [Thu, 22 Jul 2010 13:27:53 GMT] [info] [<0.1015.0>] Stacktrace: [{couch_httpd_db,handle_design_req,2}, > {couch_httpd_db,do_db_req,2}, > {couch_httpd,handle_request_int,5}, > {mochiweb_http,headers,5}, > {proc_lib,init_p_do_apply,3}] > [Thu, 22 Jul 2010 13:27:53 GMT] [info] [<0.1015.0>] 127.0.0.1 - - 'GET' /argh/_design/foo/_views/bar 500 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.