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 ECFC79D64 for ; Tue, 21 Feb 2012 22:53:16 +0000 (UTC) Received: (qmail 35306 invoked by uid 500); 21 Feb 2012 22:53:16 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 35262 invoked by uid 500); 21 Feb 2012 22:53:16 -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 35253 invoked by uid 99); 21 Feb 2012 22:53:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 22:53:16 +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:53: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 D0BDC1C3BB0 for ; Tue, 21 Feb 2012 22:52:48 +0000 (UTC) Date: Tue, 21 Feb 2012 22:52:48 +0000 (UTC) From: "Sam Bisbee (Closed) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1601117735.1586.1329864768856.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (COUCHDB-15) Error inserting attachment with empty data 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-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Bisbee closed COUCHDB-15. ----------------------------- Resolved for a while and confirmed fixed in 1.1.1. Closing. > Error inserting attachment with empty data > ------------------------------------------ > > Key: COUCHDB-15 > URL: https://issues.apache.org/jira/browse/COUCHDB-15 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Affects Versions: 0.7.2, 0.8 > Reporter: Noah Slater > Fix For: 0.8.1 > > > What steps will reproduce the problem? > 1. Insert a document like: {"_attachments": {"foo": {"data": ""}}} > What is the expected output? What do you see instead? > I'd expect it to add the 0-length attachment, but I get this error in the log: > [info] [<0.1541.0>] HTTP Error (code 500): {obj,[{error,"EXIT"}, > {reason,"{function_clause,[{couch_util,decode1,[undefined]},\n > {couch_util,decodeBase64,1},\n {couch_doc,'-from_json_obj/1-fun-0-',1},\n > {lists,flatmap,2},\n {couch_doc,from_json_obj,1},\n > {mod_couch,handle_doc_put,2},\n {mod_couch,do,1},\n > {httpd_response,traverse_modules,2}]}"}]} > What version of the product are you using? On what operating system? > This happens on 0.7.2 and trunk -- 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