couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juuso Väänänen (JIRA) <>
Subject [jira] Updated: (COUCHDB-687) Add md5 hash to _attachments properties for documents
Date Tue, 23 Nov 2010 19:58:14 GMT


Juuso Väänänen updated COUCHDB-687:

    Attachment: couchdb-md5-in-attachment-COUCHDB-687.patch

Second try storing md5 calculated from attachement when attachement added to file. Replication
uses provided identity-md5 if such exists. Compressed attachements are not extracted to find
out what actual md5 would be. If md5 is not known for some reason text value "unknown" is
used on json.

Upgrade path from older disk formats is not most likely complete and this patch is at the
moment only request for comments. (Anyway granted for inclusion)

> Add md5 hash to _attachments properties for documents
> -----------------------------------------------------
>                 Key: COUCHDB-687
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>         Environment: CouchDB
>            Reporter: mikeal
>            Assignee: Filipe Manana
>         Attachments: couchdb-md5-in-attachment-COUCHDB-687.patch, md5.patch
> The current attachment information looks like this:
> GET /dbname/docid
> "_attachments": {
>       "jquery-1.4.1.min.js": {
>           "content_type": "text/javascript"
>           "revpos": 138
>           "length": 70844
>           "stub": true
>       }
> }
> If a client wanted to sync local files as attachments with a document it would not currently
be able to do so without keeping a local store of the revpos. If this information included
an md5 hash of the attachment clients could compare it against a hash of the local file to
see if they match.
> -Mikeal

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message