Return-Path: X-Original-To: apmail-httpd-bugs-archive@www.apache.org Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31EA6F454 for ; Wed, 3 Apr 2013 06:31:21 +0000 (UTC) Received: (qmail 62555 invoked by uid 500); 3 Apr 2013 06:31:21 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 62045 invoked by uid 500); 3 Apr 2013 06:31:18 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 61913 invoked by uid 99); 3 Apr 2013 06:31:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 06:31:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 06:31:12 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 6C9077F13; Wed, 3 Apr 2013 06:30:51 +0000 (UTC) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: [Bug 54793] New: Socket timeout handler can delete uploaded files PUT upload Date: Wed, 03 Apr 2013 06:30:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: mod_dav X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kenneth@hexad.dk X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter classification Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=54793 Bug ID: 54793 Summary: Socket timeout handler can delete uploaded files PUT upload Product: Apache httpd-2 Version: 2.5-HEAD Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: mod_dav Assignee: bugs@httpd.apache.org Reporter: kenneth@hexad.dk Classification: Unclassified When issuing a PUT request for a non-existent resource, the upload will eventually return "201 - Created". However, if this upload is paused, or the cable is "cut", the socket will remain open. Now, if another PUT request is then issued against the same resource, it can upload a new file, but will get a "204 - No Content" response. Issuing a PROPFIND will show the file, and issuing a GET will download the file. All good. But when the original request times out, it will delete the file on the server! This happens in production, because some German DSL subscribers have their lines reset at least every 24-hours. When this happens, every socket is immediately discovered as disconnected by the client, but the server only notices absence of data. When the client retries the upload, it can succeed (with a 204) and later disappear. If the file is large enough, the timeout occurs during the second upload and the server responds "500 - Internal Error" (not as bad, as the client knows it failed). There may be similar side-effects with existing files. The only issue I have found that appear somewhat related is #39815. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org