Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 9538 invoked from network); 18 Jul 2008 09:12:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2008 09:12:53 -0000 Received: (qmail 21134 invoked by uid 500); 18 Jul 2008 09:12:52 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 21092 invoked by uid 500); 18 Jul 2008 09:12:52 -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 21081 invoked by uid 99); 18 Jul 2008 09:12:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 02:12:52 -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; Fri, 18 Jul 2008 09:12:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B7742234C170 for ; Fri, 18 Jul 2008 02:12:31 -0700 (PDT) Message-ID: <1525499056.1216372351738.JavaMail.jira@brutus> Date: Fri, 18 Jul 2008 02:12:31 -0700 (PDT) From: "Jan Lehnardt (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Resolved: (COUCHDB-15) Error inserting attachment with empty data In-Reply-To: <1997285694.1205020546256.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-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Lehnardt resolved COUCHDB-15. --------------------------------- Resolution: Fixed Fix Version/s: 0.8.1 Fixed in 677682 > 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. - You can reply to this email to add a comment to the issue online.