couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1832) Inline Attachment API allows empty names
Date Tue, 18 Jun 2013 15:01:24 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13686801#comment-13686801
] 

ASF subversion and git services commented on COUCHDB-1832:
----------------------------------------------------------

Commit 6b8fc0831810442ddb23808ab54340fe18f37e8b in branch refs/heads/1832-fix-empty-attachment-name
from [~janl]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=6b8fc08 ]

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’t be retrieved via the
standalone attachment API.

This patch adds testing for the empty string in the
`validate_attachment_name` function.

Closes COUCHDB-1832

                
> 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 administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message