|
|||||||||||
|
Bug#451563: apache2.2-common: HTTP PUT with mod_dav fails to detect an aborted connection
From: William Herrin <herrin(at)dirtside.com>
Date: Fri Nov 16 2007 - 18:02:03 EST
Apache treats an aborted HTTP PUT as if it completed successfully, logs the PUT as having completed successfully and leaves the incomplete file on the disk. It does so even though the transmitted content is much shorter than the advertised content length. Replicate with: httpd.conf: LoadModule dav_module /usr/lib/apache2/modules/mod_dav.so LoadModule dav_fs_module /usr/lib/apache2/modules/mod_dav_fs.so LoadModule dav_lock_module /usr/lib/apache2/modules/mod_dav_lock.soDAVLockDB /tmp/DAVLock <Directory /var/www/dav/> Dav filesystem </Directory> # mkdir /var/www/dav # chown www-data /var/www/dav # curl -T bigfile http://localhost/dav/bigfile^C partial upload at /var/www/dav/bigfile remains on the disk.
access_log shows success status 201:
excerpts from tcpdump:
PUT /dav/bigfile HTTP/1.1
HTTP/1.1 100 Continue [uploaded data until ^C] Note: FIN packet from source due to program abort 17:31:32.166989 IP (tos 0x0, ttl 64, id 58671, offset 0, flags [DF], proto: TCP (6), length: 16436) 127.0.0.1.57636 > 127.0.0.1.80: FP 4587737:4604121(16384) ack 26 win 8192 <nop,nop,timestamp 96632442 96632442>
Note: Apache responds with success message anyway
17:31:32.170708 IP (tos 0x0, ttl 64, id 31673, offset 0, flags [DF], proto:
TCP (6), length: 629) 127.0.0.1.80 > 127.0.0.1.57636: P, cksum 0xca8d
(correct), 26:603(577) ack 4604122 win 32768 <nop,nop,timestamp 96632443
96632442>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> Note: RST packet from source since the connection is no longer there. 17:31:32.170763 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: TCP (6), length: 40) 127.0.0.1.57636 > 127.0.0.1.80: R, cksum 0x1f77 (correct), 1707072287:1707072287(0) win 0
Versions of packages apache2.2-common depends on: ii apache2-utils 2.2.3-4+etch1 utility programs for webservers ii libmagic1 4.17-5etch3 File type determination library us ii lsb-base 3.1-23.2etch1 Linux Standard Base 3.1 init scrip ii mime-support 3.39-1 MIME files 'mime.types' & 'mailcap ii net-tools 1.60-17 The NET-3 networking toolkit ii procps 1:3.2.7-3 /proc file system utilities apache2.2-common recommends no packages.
-- To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Fri Nov 16 18:08:50 2007 This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 02:58:59 EDT |
||||||||||
|
|||||||||||