Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 319CDF6EE for ; Wed, 3 Apr 2013 19:06:41 +0000 (UTC) Received: (qmail 87391 invoked by uid 500); 3 Apr 2013 19:06:39 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 87342 invoked by uid 500); 3 Apr 2013 19:06:39 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 87332 invoked by uid 99); 3 Apr 2013 19:06:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 19:06:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kxepal@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-wg0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 19:06:35 +0000 Received: by mail-wg0-f54.google.com with SMTP id a12so1921829wgh.21 for ; Wed, 03 Apr 2013 12:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=oyynnmyTzmJe+bSpQcGvRk+XS9CQH4hEJ1hH6O7rAYI=; b=Xte/+vj7vEzb1A09MQ81VHDvie1YwowsyyakVhi9Nlnf/iyYjkCbf4+/A0CZJpd44Z buzEZ04CfsNK7s6uspVg7EYrbIuSMZZeygRaj4gt6M0rlWcDIPnqQ30EsJWauAdjDbBK bvsjs3NcER3CK78x9E7Q0DI4sl0nU/LygRZHS5Niz6VVuzbPbi7lJZcF/51kakicI876 3gF3f7lEkgYdqXtOxiC6tcmRKgixDf3OIhkE/MV8Dh4BhOX2hBZqaMEr1FGo0CrVc2Y/ 2QkwA7Bq8R85QY4fkokvkhBSzhEnNYEqJqnqq+GGXYjCJwyDtXOak5YUJiwUB0Nuby5M VGBw== MIME-Version: 1.0 X-Received: by 10.194.82.104 with SMTP id h8mr4807187wjy.3.1365015974072; Wed, 03 Apr 2013 12:06:14 -0700 (PDT) Received: by 10.180.145.201 with HTTP; Wed, 3 Apr 2013 12:06:13 -0700 (PDT) In-Reply-To: References: Date: Wed, 3 Apr 2013 23:06:13 +0400 Message-ID: Subject: Re: saving attachments with a name that starts with an underscore From: Alexander Shorin To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi Cory Attachment names and any top level document fields are forbidden to starts with underscore `_` character since it is used to mark private or system fields that CouchDB may use for internal proposes. So this is by design, you have to rename your attachment and strip leading underscore. I'm wonder why you receives "[Errno 104] Connection reset by peer" instead of regular HTTP 400 {"error": "bad_request", "reason": "Attachment name can't start with '_'"} for such cases. May be Benoit as couchdbkit author say more about such behavior... -- ,,,^..^,,, On Wed, Apr 3, 2013 at 10:52 PM, Cory Zue wrote: > I'm trying to save an attachment to a couch doc that starts with an > underscore (e.g. "_myfile.txt") and i'm getting rejected with "[Errno 104] > Connection reset by peer". > > Is this a known limitation of couch or a bug in my client library > (couchdbkit)? > > thanks, > Cory