Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 7834 invoked from network); 22 Dec 2010 17:38:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Dec 2010 17:38:28 -0000 Received: (qmail 41086 invoked by uid 500); 22 Dec 2010 17:38:27 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 41018 invoked by uid 500); 22 Dec 2010 17:38:27 -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 41010 invoked by uid 99); 22 Dec 2010 17:38:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 17:38:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 17:38:25 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBMHc32I023056 for ; Wed, 22 Dec 2010 17:38:04 GMT Message-ID: <31579240.272101293039483956.JavaMail.jira@thor> Date: Wed, 22 Dec 2010 12:38:03 -0500 (EST) From: "Randall Leeds (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-687) Add md5 hash to _attachments properties for documents MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12974292#action_12974292 ] Randall Leeds commented on COUCHDB-687: --------------------------------------- Paul: Do you mean the current formatting is a bit weird? I fight with erlang-mode constantly to get the case style we use. > Add md5 hash to _attachments properties for documents > ----------------------------------------------------- > > Key: COUCHDB-687 > URL: https://issues.apache.org/jira/browse/COUCHDB-687 > Project: CouchDB > Issue Type: Improvement > Environment: CouchDB > Reporter: mikeal > Assignee: Filipe Manana > Attachments: couchdb-md5-in-attachment-COUCHDB-687-v2.patch, 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.