[Solved] mod_webdav can not upload file when file directory not exist
Added by about 14 years ago
In mod_webdav.c ,line 1681 to 1694.When opening the file, did not determine whether there is a directory.So if the file directory not exist,return 403.
Is that what special considerations or a bug?
The WebDAV RFC says if the 'collection' doesn't exist to return a 409, so if you really wanted to you could write a quick patch to test if the parent directory exists, if not then return 409, otherwise 403. However, the extra test to see if the directory exists isn't really worth it since the client will most likely react the same way.