Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 67998 invoked from network); 19 Dec 2007 17:06:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2007 17:06:21 -0000 Received: (qmail 46871 invoked by uid 500); 19 Dec 2007 17:06:00 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 46860 invoked by uid 500); 19 Dec 2007 17:06:00 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 46848 invoked by uid 99); 19 Dec 2007 17:06:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2007 09:06:00 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gwittel@proofpoint.com designates 207.111.236.2 as permitted sender) Received: from [207.111.236.2] (HELO admin1009.us.proofpoint.com) (207.111.236.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2007 17:05:38 +0000 Received: from binky.us.proofpoint.com (mail-ext.us.proofpoint.com [10.20.0.200]) by admin1009.us.proofpoint.com (8.13.8/8.13.8) with ESMTP id lBJH5agw014608 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 19 Dec 2007 09:05:38 -0800 Received: from [10.23.12.68] (cup-wk1034.corp.proofpoint.com [10.23.12.68]) by binky.us.proofpoint.com (8.13.6/8.12.8) with ESMTP id lBJH5Zjw022542 for ; Wed, 19 Dec 2007 09:05:35 -0800 Message-ID: <47694F60.90606@proofpoint.com> Date: Wed, 19 Dec 2007 09:05:36 -0800 From: Greg Wittel User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.5502:2.3.11,1.2.37,4.0.164 definitions=2007-12-19_06:2007-12-18,2007-12-19,2007-12-19 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0708230000 definitions=main-0712190092 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] mod_dav -- Small Files Corrupt if locked first Working on setting up file upload via DAV and I've found an odd problem... If a file is <= 8192 bytes AND I've placed a protective lock on the file before sending, it will be corrupted. If I don't put a write lock before sending the file, it arrives fine. If I send something > 8192 bytes protective locks are OK. I'm not sure if this was fixed in a later HTTPD, I don't have the option of upgading =/. I couldn't find anything in Bugzilla, and I've dumped the data posted to Apache via the DAV client, and that is correct. Any thoughts? Test case/Apache info below -Greg DAV Client: Perl HTTP::DAV 0.31 / dave Apache Info: Apache/2.0.55 (Unix) mod_ssl/2.0.55 OpenSSL/0.9.8a DAV/2 mod_perl/1.999.21 Perl/v5.8.6 Test case: Test files and correct MD5s: $ dd if=/dev/urandom of=test-8k.bin bs=8k count=1 $ dd if=/dev/urandom of=test-8.nk.bin bs=8193 count=1 $ md5sum test-8k.bin test-8.nk.bin 629d17eb9106740898ead91f88c55181 test-8k.bin 1bd8d5c63f391881b5c68c294f3e8a58 test-8.nk.bin $ dave -u user -p 'pass' https://davhost:davport/blah/ Duplicate specification "man|?" for option "?" ... (1) File Corrupted if lock issued: dave> lock test-8k.bin dave> put test-8k.bin test-8k.bin put https://(uri)/test-8k.bin (8192 bytes) (success) dave> unlock test-8k.bin (2) File not corrupt (8192 byte) / no lock: dave> put test-8k.bin test-8k.bin $ md5sum test-8k.bin a1f8386ab62fc5acd73e694f255af6a6 test-8k.bin (2) File not corrupt (8193 bytes): dave> lock test-8.nk.bin dave> put test-8.nk.bin test-8.nk.bin put https://(uri)/test-8.nk.bin (8193 bytes) (success) dave> unlock test-8.nk.bin --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org