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

Locally replicated compressed attachements have wrong disk_len

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.1
    • None
    • Replication
    • None
    • Ubuntu 10.04, Erlang R13B3, couchdb svn rev 1029390
      Debian squeeze/sid, Erlang R14A2, couchdb 1.0.1

    Description

      When replicating document locally compressed attached file length is shown wrongly on replication target. Also Content-Length -header shows zero value when requesting replicated attachement.

      Source:
      {"_id":"c68f75e26cc62c81f0bab14441000141","_rev":"4-89b0b48063ae1f338321af8d6b4e2eeb","_attachments":{"md5.patch":

      {"content_type":"text/x-patch","revpos":2,"length":1259,"stub":true,"encoding":"gzip","encoded_length":534}

      }}

      Replicated:
      {"_id":"c68f75e26cc62c81f0bab14441000141","_rev":"4-89b0b48063ae1f338321af8d6b4e2eeb","_attachments":{"md5.patch":

      {"content_type":"text/x-patch","revpos":2,"length":534,"stub":true,"encoding":"gzip","encoded_length":534}

      }}

      Steps to produce:
      1. create databases a and b
      2. create text-document with attachement on db a
      3. start local replication a to b
      4. request document's attachement on db b

      Attachments

        1. fix-local-replication.patch
          3 kB
          Juuso Väänänen

        Activity

          People

            fdmanana Filipe David Borba Manana
            juuva Juuso Väänänen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: