Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-687

Add md5 hash to _attachments properties for documents

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      CouchDB

    • Skill Level:
      Regular Contributors Level (Easy to Medium)

      Description

      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

        Attachments

        1. md5.patch
          1 kB
          Juuso Väänänen
        2. couchdb-md5-in-attachment-COUCHDB-687-v3.patch
          17 kB
          Juuso Väänänen
        3. couchdb-md5-in-attachment-COUCHDB-687-v2.patch
          16 kB
          Juuso Väänänen
        4. couchdb-md5-in-attachment-COUCHDB-687.patch
          13 kB
          Juuso Väänänen

          Issue Links

            Activity

              People

              • Assignee:
                fdmanana Filipe Manana
                Reporter:
                mikeal mikeal
              • Votes:
                3 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: