httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 39815] Atomic Creation of uploaded files in mod_dav
Date Wed, 08 Jul 2009 20:51:27 GMT

--- Comment #6 from Stefan Fritsch <>  2009-07-08 13:51:25 PST ---
This bug can also cause data loss: When something goes wrong with a PUT request
that replaces a file, the old file will be deleted.

I see three possible solutions:

1) Create a new hook that is called in dav_notify_created() to update the lock
key. This breaks mod_dav's API compatibility and cannot be done in 2.2

2) Use a temp file that is moved over the old file as in Paul's patch, and
switch the lock key from inode to filename.

3) Use a temp file that is copied over the old file. This is slow and doesn't
solve the problem completely.

I would vote for 2), in order to get this into 2.2.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message