Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92181 - Apache2 ebuild does not create the webdav lock database folder
Summary: Apache2 ebuild does not create the webdav lock database folder
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-10 12:12 UTC by Paul Sadauskas
Modified: 2005-07-11 19:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Sadauskas 2005-05-10 12:12:56 UTC
The default /etc/apache2/conf/modules.d/45_mod_dav.conf file includes the directive:

    # Location of the WebDAV lock database.
    DavLockDB /var/lib/dav/lockdb

However, the folder /var/lib/dav does not exist after "emerge apache" so enabling -D DAV in /etc/conf.d/apache2 gives errors when trying to do WebDAV locking (writing files, etc...)

Reproducible: Always
Steps to Reproduce:
1.emerge apache (I used 2.0.52-r1)
2.edit /etc/conf.d/apache2 to enable WebDAV ( "-D DAV -D DAV_FS" )
3.attempt to upload (PUT) a file.

Actual Results:  
in apache error log:
[Tue May 10 14:00:24 2005] [error] [client 192.168.0.42] The locks could not be
queried for verification against a possible "If:" header.  [500, #0]
[Tue May 10 14:00:24 2005] [error] [client 192.168.0.42] Could not open the lock
database.  [500, #400]
[Tue May 10 14:00:24 2005] [error] [client 192.168.0.42] (2)No such file or
directory: Could not open property database.  [500, #1]


Expected Results:  
After creating directory /var/lib/dav and chown apache:

192.168.0.42 - rando [10/May/2005:14:01:07 -0500] "PUT
/dav/loanintel/Text%20File HTTP/1.1" 201 322 "-" "Mozilla/5.0 (compatible;
Konqueror/3.4; Linux) KHTML/3.4.0 (like Gecko)"
192.168.0.42 - rando [10/May/2005:14:01:07 -0500] "PROPFIND /dav/loanintel/
HTTP/1.1" 207 1990 "-" "Mozilla/5.0 (compatible; Konqueror/3.4; Linux)
KHTML/3.4.0 (like Gecko)"
192.168.0.42 - rando [10/May/2005:14:01:11 -0500] "PROPFIND
/dav/loanintel/Text%20File HTTP/1.1" 207 1028 "-" "Mozilla/5.0 (compatible;
Konqueror/3.4; Linux) KHTML/3.4.0 (like Gecko)"
192.168.0.42 - rando [10/May/2005:14:01:11 -0500] "DELETE
/dav/loanintel/Text%20File HTTP/1.1" 204 - "-" "Mozilla/5.0 (compatible;
Konqueror/3.4; Linux) KHTML/3.4.0 (like Gecko)"


Since I imagine not everyone requires WebDAV, perhaps enabling a webdav USE flag
for apache to for the creation of this directory?


=============
Begin Emerge Info:

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  1 2005, 05:23:27)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 apm avi berkdb bitmap-fonts crypt curl emboss encode foomaticdb
fortran gd gdbm gif gtk2 imlib ipv6 jpeg libg++ libwww mad mikmod motif mp3 mpeg
mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python
quicktime readline ruby samba sdl spell ssl svga tcpd tiff truetype
truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

End Emerge Info
==========
Comment 1 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-07-11 19:52:14 UTC
it look like this has been fixed in stable.
resolving.