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 56B6DDF27 for ; Sun, 14 Oct 2012 02:09:24 +0000 (UTC) Received: (qmail 56934 invoked by uid 500); 14 Oct 2012 02:09:23 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 56897 invoked by uid 500); 14 Oct 2012 02:09:23 -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 56886 invoked by uid 99); 14 Oct 2012 02:09:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2012 02:09:23 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of space.ship.traveller@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2012 02:09:16 +0000 Received: by mail-ee0-f52.google.com with SMTP id b57so2166010eek.11 for ; Sat, 13 Oct 2012 19:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/0aJl0xP938fxkjlNvrejKKHeSPrqq0SVdr6ObM/dHE=; b=QQBgtxbXk9PNUjaE34Lw4oqQ4bC9+HNYZgPpqg043PcfY6J7UjJfHEM9zSIusW2hqg MN5eh0bTkt2XdW4M8EjoLuzNcHcaonrTSNLAT5BZuKp1aE5VuxPekQZllBT0aiMik4Ho 05I3cmxHOfG9Kda0W71tRSevkCo6chnt79dAEO1G0ADiZxQOc1jyKgtQbhcKzb5pfqql ZsOKhrR/7QMDwSOBrhvF8PK2Bze65lcXw3rIes/X9y12wxTaPjTxiemoGI7xxioQXHiw zjNzxgJ2YlCTIiyVFkNX12V9bFKbxd/yniFh59hTf9XqhTJ+z5sD7rysqTz+XrrZl4uF jSOw== MIME-Version: 1.0 Received: by 10.14.220.134 with SMTP id o6mr11331322eep.35.1350180536533; Sat, 13 Oct 2012 19:08:56 -0700 (PDT) Received: by 10.14.101.1 with HTTP; Sat, 13 Oct 2012 19:08:56 -0700 (PDT) Date: Sun, 14 Oct 2012 15:08:56 +1300 Message-ID: Subject: Bug in attachments? From: Samuel Williams To: dev@couchdb.apache.org Content-Type: multipart/alternative; boundary=047d7b62274e4340be04cbfb6769 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b62274e4340be04cbfb6769 Content-Type: text/plain; charset=ISO-8859-1 Hi, I don't know much about erlang but there appears to be a bug in the inline attachments functionality: http://pastie.org/5055155 I just try to upload the following doc: document = { "_attachments" => { "foo.txt" => { "content_type" => "text\/plain", "data" => "Hello World" } } } data gets encoded using base64. >From the erlang shell: 27> base64:decode(<<"SGVsbG8gV29ybGQ=">>, []). ** exception error: undefined function base64:decode/2 Kind regards, Samuel --047d7b62274e4340be04cbfb6769--