couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (COUCHDB-2251) Digest for attachments depends on "content_type"
Date Thu, 05 Jun 2014 10:08:01 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-2251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexander Shorin resolved COUCHDB-2251.
---------------------------------------

    Resolution: Not a Problem

Attachments digest depends not from content-type, but from data compression. By default CouchDB
gzips attachments which has next mime type: {{text/*, application/javascript, application/json,
application/xml}}.  For `.bin` extension the `application/octet-stream` is used which is out
of this list, so you "foo.json" stored compressed while "foo.bin" not. That's why md5 digests
are different.

> Digest for attachments depends on "content_type"
> ------------------------------------------------
>
>                 Key: COUCHDB-2251
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2251
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Database Core
>    Affects Versions: 1.5.1
>         Environment: Mac OS X 10.9
>            Reporter: Alexander Fedorenchik
>
> Steps to reproduce:
> 1) Create 2 files with the same json content. Give one .json extension and .bin to another.
> 2) Upload both of them as attachments to any document.
> Expected result:
> Digest for both files have to be equal.
> Actual result:
> Digests are different. ".bin" file have correct one.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message