CouchDB
  1. CouchDB
  2. COUCHDB-687

Add md5 hash to _attachments properties for documents

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major 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

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

        Issue Links

          Activity

          mikeal created issue -
          Filipe Manana made changes -
          Field Original Value New Value
          Assignee Filipe Manana [ fdmanana ]
          Paul Joseph Davis made changes -
          Skill Level Regular Contributors Level (Easy to Medium)
          Juuso Väänänen made changes -
          Attachment md5.patch [ 12457990 ]
          Juuso Väänänen made changes -
          Juuso Väänänen made changes -
          Juuso Väänänen made changes -
          Randall Leeds made changes -
          Link This issue is duplicated by COUCHDB-1170 [ COUCHDB-1170 ]
          Randall Leeds made changes -
          Fix Version/s 2.0 [ 12315572 ]
          Fix Version/s 1.3 [ 12318350 ]
          Robert Newson made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.1 [ 12314933 ]
          Fix Version/s 2.0 [ 12315572 ]
          Fix Version/s 1.3 [ 12318350 ]
          Resolution Fixed [ 1 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development