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 AD0429A81 for ; Tue, 21 Feb 2012 22:47:10 +0000 (UTC) Received: (qmail 8188 invoked by uid 500); 21 Feb 2012 22:47:10 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 8132 invoked by uid 500); 21 Feb 2012 22:47:10 -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 8123 invoked by uid 99); 21 Feb 2012 22:47:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 22:47:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Tue, 21 Feb 2012 22:47:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0A0021C361D for ; Tue, 21 Feb 2012 22:46:49 +0000 (UTC) Date: Tue, 21 Feb 2012 22:46:49 +0000 (UTC) From: "Sam Bisbee (Closed) (JIRA)" To: dev@couchdb.apache.org Message-ID: <374784226.1527.1329864409042.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (COUCHDB-83) undefined in an array as a key causes an Erlang 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-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Bisbee closed COUCHDB-83. ----------------------------- Confirmed fixed in 1.1.1. Closing. > undefined in an array as a key causes an Erlang error > ----------------------------------------------------- > > Key: COUCHDB-83 > URL: https://issues.apache.org/jira/browse/COUCHDB-83 > Project: CouchDB > Issue Type: Bug > Components: JavaScript View Server > Affects Versions: 0.7.2, 0.8 > Reporter: Ryszard Szopa > Assignee: Christopher Lenz > Fix For: 0.8.1 > > > Whenever a view emits an array containing undefined as a key an Erlang is thrown: > For example, if there's at least one document in the db without foo being set, the following view > function(doc) { > emit([doc.foo], doc); > } > triggers > {{nocatch,{bad_value,"Cannot encode 'undefined' value as JSON"}}, > [{couch_query_servers,prompt,2}, > {couch_query_servers,'-map_docs/2-fun-0-',2}, > {lists,map,2}, > {couch_query_servers,map_docs,2}, > {couch_view,view_compute,2}, > {couch_view,update_group,1}, > {couch_view,temp_update_loop,2}]} > OTOH, > function(doc) { > emit(doc.foo, doc); > } > causes no problems. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira