Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 10274 invoked from network); 31 Oct 2010 20:30:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Oct 2010 20:30:14 -0000 Received: (qmail 45145 invoked by uid 500); 31 Oct 2010 20:30:45 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 45108 invoked by uid 500); 31 Oct 2010 20:30:45 -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 45100 invoked by uid 99); 31 Oct 2010 20:30:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Oct 2010 20:30:45 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=10.0 tests=ALL_TRUSTED,FS_REPLICA 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; Sun, 31 Oct 2010 20:30:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9VKUOMl025868 for ; Sun, 31 Oct 2010 20:30:24 GMT Message-ID: <32699475.165241288557024337.JavaMail.jira@thor> Date: Sun, 31 Oct 2010 16:30:24 -0400 (EDT) From: =?utf-8?Q?Juuso_V=C3=A4=C3=A4n=C3=A4nen_=28JIRA=29?= To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-930) Locally replicated compressed attachements have wrong disk_len In-Reply-To: <29719449.165221288556785536.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-930?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Juuso V=C3=A4=C3=A4n=C3=A4nen updated COUCHDB-930: ----------------------------------- Attachment: fix-local-replication.patch Patch for adding test also for local replication and suggestion how to fix = that. Compability with older releases not tested. > Locally replicated compressed attachements have wrong disk_len > -------------------------------------------------------------- > > Key: COUCHDB-930 > URL: https://issues.apache.org/jira/browse/COUCHDB-930 > Project: CouchDB > Issue Type: Bug > Components: Replication > Affects Versions: 1.0.1 > Environment: Ubuntu 10.04, Erlang R13B3, couchdb svn rev 1029390 > Debian squeeze/sid, Erlang R14A2, couchdb 1.0.1 > Reporter: Juuso V=C3=A4=C3=A4n=C3=A4nen > Priority: Minor > Attachments: fix-local-replication.patch > > > When replicating document locally compressed attached file length is show= n wrongly on replication target. Also Content-Length -header shows zero val= ue when requesting replicated attachement. > Source: > {"_id":"c68f75e26cc62c81f0bab14441000141","_rev":"4-89b0b48063ae1f338321a= f8d6b4e2eeb","_attachments":{"md5.patch":{"content_type":"text/x-patch","re= vpos":2,"length":1259,"stub":true,"encoding":"gzip","encoded_length":534}}} > Replicated: > {"_id":"c68f75e26cc62c81f0bab14441000141","_rev":"4-89b0b48063ae1f338321a= f8d6b4e2eeb","_attachments":{"md5.patch":{"content_type":"text/x-patch","re= vpos":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 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.