Backport some mod_dav fixes:
* modules/dav/fs/repos.c (MAP_IO2HTTP): New macro. (dav_fs_copymove_file): Use it to give a 507 if open() returns ENOSPC, and use it to handle apr_file_write_full() return code. (dav_fs_open_stream): Use MAP_IO2HTTP. (dav_fs_create_collection): Use APR_STATUS_IS_ENOSPC. * modules/dav/fs/repos.c (dav_fs_copymove_file): Update for the fact that apr_file_read() has guaranteed len == 0 at EOF for a looong time; and avoid a redundant call to write(,,0) when EOF is reached. * modules/dav/main/util.c (dav_validate_resource_state): Fix a 2617 violation: if the lock user validation fails, rather than giving a 401 without a WWW-Authenticate header, give a 403. Reviewed by: Andr�� Malo, Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@103685 13f79535-47bb-0310-9956-ffa450edef68
parent
e1fc7cf0
Please register or sign in to comment