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 3855010459 for ; Tue, 18 Jun 2013 14:33:25 +0000 (UTC) Received: (qmail 86393 invoked by uid 500); 18 Jun 2013 14:33:23 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 86117 invoked by uid 500); 18 Jun 2013 14:33:21 -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 85976 invoked by uid 99); 18 Jun 2013 14:33:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 14:33:20 +0000 Date: Tue, 18 Jun 2013 14:33:20 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-1832) Inline Attachment API allows empty names MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1832?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13= 686783#comment-13686783 ]=20 ASF subversion and git services commented on COUCHDB-1832: ---------------------------------------------------------- Commit ad774b6e096d5011a16837e600db70204e9ae28c in branch refs/heads/1832-f= ix-empty-attachment-name from [~janl] [ https://git-wip-us.apache.org/repos/asf?p=3Dcouchdb.git;h=3Dad774b6 ] Prevent creation of empty attachment names via inline API. It is possible to create an attachment using the inline attachment API that has the empty string "" as the name: { "_id":"11612aba0238dc0dd8c2d37e7909b4e6", "_attachments": { "": {...} } } Attachments created this way can=E2=80=99t be retrieved via the standalone attachment API. This patch adds testing for the empty string in the `validate_attachment_name` function. Closes COUCHDB-1832 =20 > Inline Attachment API allows empty names > ---------------------------------------- > > Key: COUCHDB-1832 > URL: https://issues.apache.org/jira/browse/COUCHDB-1832 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Reporter: Jan Lehnardt > > The standalone attachment API allows the creation of attachments with an = empty name. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira