Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F4FCD010 for ; Sat, 15 Sep 2012 16:02:21 +0000 (UTC) Received: (qmail 68975 invoked by uid 500); 15 Sep 2012 16:02:17 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 68945 invoked by uid 500); 15 Sep 2012 16:02:17 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 68937 invoked by uid 99); 15 Sep 2012 16:02:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Sep 2012 16:02:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of icicimov@gmail.com designates 209.85.223.173 as permitted sender) Received: from [209.85.223.173] (HELO mail-ie0-f173.google.com) (209.85.223.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Sep 2012 16:02:11 +0000 Received: by iebc10 with SMTP id c10so10053630ieb.18 for ; Sat, 15 Sep 2012 09:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=s0+L7NHiYy3T/EnRrRC+PhUzz9jrUuQYwPGn0Dj5k7o=; b=lQIwhytgvNMNjzCzPyFXBFTWQ7DvE6twY3nsympzYrzQ8qGQcf2aILgXTOIOnfZHHv tL7p1PWYiOxzai6fHidF6mxvfT1hgXlhlT24QcOc7W1CmdtcmTFwOzC4vY5IIgMnqxRr Vcxl5PlNH1e6k5a772HJ5Pd8dWJ2nJ8pXjBt7yKn1uTVuyzGiNKhjrsOMk99kPb0rxI9 pmXV2BWt+jtiMxDXcPLszeK38nWoRQ3WgMs4qFNrv+hkrMwIoUed7/6U/bBI+cagDGH+ 04jWVGmWOMcmq/qQP16c+Q+HOv7/61XiVElPZS7FCiDAAYGkNRXQofC9gIfvmi6UjGUK 0n3w== MIME-Version: 1.0 Received: by 10.50.160.233 with SMTP id xn9mr2401007igb.37.1347724910419; Sat, 15 Sep 2012 09:01:50 -0700 (PDT) Received: by 10.42.69.136 with HTTP; Sat, 15 Sep 2012 09:01:50 -0700 (PDT) In-Reply-To: <20120915133318.325920@gmx.net> References: <20120915133318.325920@gmx.net> Date: Sun, 16 Sep 2012 02:01:50 +1000 Message-ID: From: Igor Cicimov To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=14dae9340eb18a5eb304c9bfa857 Subject: Re: [users@httpd] Weird locking issue with mod_dav --14dae9340eb18a5eb304c9bfa857 Content-Type: text/plain; charset=ISO-8859-1 On Sat, Sep 15, 2012 at 11:33 PM, Werner Schalk wrote: > Hello, > > I am trying to configure webdav for a folder and I am consistently hitting > a problem: Whenever files are copied to the webdav share, the operation > aborts and the error log of Apache contains the following entries: > > [Sat Sep 15 14:16:27 2012] [error] [client 81.210.X.Y] (2)No such file or > directory: This resource is locked and an "If:" header was not supplied to > allow access to the resource. [423, #0] > [Sat Sep 15 14:18:41 2012] [error] [client 81.210.X.Y] Could not LOCK > /mydrop/Sample folder/P1290025.JPG due to a failed precondition (e.g. other > locks). [423, #0] > [Sat Sep 15 14:18:41 2012] [error] [client 81.210.X.Y] (2)No such file or > directory: Existing lock(s) on the requested resource prevent an exclusive > lock. [423, #0] > > Here is my configuration: > > DavLockDB "/var/lib/dav/lockdb2" > > BrowserMatch "Microsoft Data Access Internet Publishing Provider" > redirect-carefully > BrowserMatch "MS FrontPage" redirect-carefully > BrowserMatch "^WebDrive" redirect-carefully > BrowserMatch "^WebDAVFS/1.[012345678]" redirect-carefully > BrowserMatch "^gnome-vfs/1.0" redirect-carefully > BrowserMatch "^XML Spy" redirect-carefully > BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully > > > > > ServerName www.bla.com > DocumentRoot "/home/bla/blubb/htdocs" > > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > Alias /mydrop /home/bla/blubb/htdocs.webdav > DAV On > Options Indexes > AuthType Basic > AuthName "Drop - Please enter password" > AuthUserFile > /home/bla/blubb/htdocs.webdav/.htpasswd > PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> > Require valid-user > Order allow,deny > Allow from all > > DavMinTimeout 600 > > > > > ScriptAlias /cgi-bin/ "/var/www/myhost/cgi-bin/" > > > php_admin_value suhosin.session.encrypt Off > > LogLevel Debug > > ErrorLog /var/log/apache2/host_x_error_log > > > TransferLog /var/log/apache2/host_x_access_log > > > > > Any ideas? I have already checked the permissions for the lock, but they > are fine (file is owned and writable my Apache user, so is the directory). > Any ideas? How about the permissions of "/home/bla/blubb/htdocs.webdav" is it writable by apache? > The Apache version I use is 2.2.22 , mod_dav, mod_dav_lock and mod_dav_fs > are enabled. The issue happens regardsless of the "Limit" directive. And it > happens even if I nuke the lock file or create a new one, the problem > remains after restarting Apache. > > Kind regards, > Werner > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --14dae9340eb18a5eb304c9bfa857 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sat, Sep 15, 2012 at 11:33 PM, Werner= Schalk <werner_schalk@gmx.de> wrote:
Hello,

I am trying to configure webdav for a folder and I am consistently hitting = a problem: Whenever files are copied to the webdav share, the operation abo= rts and the error log of Apache contains the following entries:

[Sat Sep 15 14:16:27 2012] [error] [client 81.210.X.Y] (2)No such file or d= irectory: This resource is locked and an "If:" header was not sup= plied to allow access to the resource. =A0[423, #0]
[Sat Sep 15 14:18:41 2012] [error] [client 81.210.X.Y] Could not LOCK /mydr= op/Sample folder/P1290025.JPG due to a failed precondition (e.g. other lock= s). =A0[423, #0]
[Sat Sep 15 14:18:41 2012] [error] [client 81.210.X.Y] (2)No such file or d= irectory: Existing lock(s) on the requested resource prevent an exclusive l= ock. =A0[423, #0]

Here is my configuration:

DavLockDB "/var/lib/dav/lockdb2"
<IfModule setenvif_module>
BrowserMatch "Microsoft Data Access Internet Publishing Provider"= redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012345678]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
</IfModule>

<VirtualHost 217.A.B.C:80>

=A0 =A0 =A0 =A0 ServerName www.bla.com
=A0 =A0 =A0 =A0 DocumentRoot "/home/bla/blubb/htdocs"

=A0 =A0 =A0 =A0 <Directory "/home/bla/blubb/htdocs">
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Options None
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 AllowOverride AuthConfig
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Order allow,deny
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Allow from all
=A0 =A0 =A0 =A0 </Directory>

=A0 =A0 =A0 =A0 =A0Alias /mydrop /home/bla/blubb/htdocs.webdav
=A0 =A0 =A0 =A0 =A0<Location /mydrop>=A0
=A0 =A0 =A0 =A0 =A0DAV On
=A0 =A0 =A0 =A0 Options Indexes
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 AuthType Basic
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 AuthName "Drop - Pleas= e enter password"
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 AuthUserFile /home/bla/blub= b/htdocs.webdav/.htpasswd
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 <Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL= COPY MOVE LOCK UNLOCK>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Require val= id-user
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Order allow,deny
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Allow from all
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 </Limit>
=A0 =A0 =A0 =A0 DavMinTimeout 600

=A0 =A0 =A0 =A0 =A0</Location>

=A0 =A0 =A0 =A0 <IfModule alias_module>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ScriptAlias /cgi-bin/ "/var/www/myhost= /cgi-bin/"
=A0 =A0 =A0 =A0 </IfModule>

=A0 =A0 =A0 =A0 php_admin_value suhosin.session.encrypt Off

=A0 =A0 =A0 =A0 LogLevel Debug

=A0 =A0 =A0 =A0 ErrorLog /var/log/apache2/host_x_error_log

=A0 =A0 =A0 =A0 <IfModule log_config_module>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 TransferLog /var/log/apache2/host_x_access_= log
=A0 =A0 =A0 =A0 </IfModule>

</VirtualHost>

Any ideas? I have already checked the permissions for the lock, but they ar= e fine (file is owned and writable my Apache user, so is the directory). An= y ideas?

How about the permissions of "/home/bla= /blubb/htdocs.webdav" is it writable by apache?
=A0
The Apache v= ersion I use is 2.2.22 , mod_dav, mod_dav_lock and mod_dav_fs are enabled. = The issue happens regardsless of the "Limit" directive. And it ha= ppens even if I nuke the lock file or create a new one, the problem remains= after restarting Apache.

Kind regards,
Werner

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


--14dae9340eb18a5eb304c9bfa857--