]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Backport some mod_dav fixes:
authorJoe Orton <jorton@apache.org>
Mon, 17 May 2004 14:13:50 +0000 (14:13 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 17 May 2004 14:13:50 +0000 (14:13 +0000)
commit68cccbcc1b7a5cb45a6d8c668bc8ffe476382174
treeaa45770b57205568a3098cf8cf41d219567c67db
parent51574a9a24420bf15a33194cac1610fa1283a128
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
STATUS
modules/dav/fs/repos.c
modules/dav/main/util.c