You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Remi <rv...@gmail.com> on 2010/05/26 12:18:47 UTC

[users@httpd] Webdav - Files sent twice with

Hi all,

I have a server running apache with mod_dav enabled.
I try to set up a directory where only valid users can put files. Anonymous
can get these files.
I have an issue with this configuration. Below is the behavior when a valid
user put a file on the server :
- file is uploaded to server
- server ask login/password
- file is uploaded to server again.

Does anyone have an idea why file is put twice ? How can I fix it ?

Please find my webdav configuration below:
    <IfModule mod_dav.c>
      DavLockDB /local/var/apache2/DavLock
      <Directory "/local/var/www/share">
        DAV On
        DavMinTimeout 300
        Options Indexes MultiViews FollowSymlinks
        AllowOverride None
        Order allow,deny
        Allow from all
        AuthName "Company"
        AuthType Basic
        AuthBasicProvider ldap
        AuthLDAPURL "ldap://
ldap.company.com:389/ou=users,dc=company,dc=com?uid"
        AddDefaultCharset utf-8
        AuthzLDAPAuthoritative off
        <Limit POST PUT DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
          Require valid-user
        </Limit>
      </Directory>
  </IfModule>

Kind Regards !

Remi

Re: [users@httpd] Webdav - Files sent twice with

Posted by Remi <rv...@gmail.com>.
>
>
> If the upload is actually happening, it also means HTTP's conditional
> request
> (Expect / 100-Continue) isn't happening.  That could be for many reasons:
> hopefully it's not a server bug(!)  Does it happen with all clients?  Is
> there a
> proxy involved?  What Apache version?
>
> I'm using  apache2-mpm-worker 2.2.9-10+lenny7 on debian system.
This happens with cadaver and also gnome/nautilus. No proxy

What I see with network traces is that I have PUT file.txt, then 401
Authorization Required from server, and PUT again.

Remi

Re: [users@httpd] Webdav - Files sent twice with

Posted by Nick Kew <ni...@webthing.com>.
On 26 May 2010, at 11:18, Remi wrote:

> Hi all,
> 
> I have a server running apache with mod_dav enabled.
> I try to set up a directory where only valid users can put files. Anonymous can get these files.
> I have an issue with this configuration. Below is the behavior when a valid user put a file on the server :

Your trouble is you've "limited the limits", so clients don't know they're going to
be asked to authenticate until they send the PUT (or POST/etc) request.
At the same time, you evidently have clients that are either new or too dumb
to remember their credentials (a debug client might present itself as new
more often than an operational one).

If the upload is actually happening, it also means HTTP's conditional request
(Expect / 100-Continue) isn't happening.  That could be for many reasons:
hopefully it's not a server bug(!)  Does it happen with all clients?  Is there a
proxy involved?  What Apache version?

-- 
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org