Bug#272315: nautilus: access denied when accessing webdav share

Sebastian Seifert Sebastian Seifert <lathander@gmx.de>, 272315@bugs.debian.org
Sun, 19 Sep 2004 15:19:10 +0200


On Sun, Sep 19, 2004 at 12:59:35PM +0200, Carlos Perello Marin wrote:
> On Sun, 2004-09-19 at 11:10 +0200, Sebastian Seifert wrote:
> > When I try to connect to mediacenter.gmx.de (where I have access to a
> > secure webdav share), either by typing in the URI
> > davs://mediacenter.gmx.net or davs://****:****@mediacenter.gmx.net in
> > the Open Location dialog, or by specifying the data in the Connect to
> > Server dialog, I get an error message:
[...]
> > The webdav share works with cadaver, an ftp-like command line tool.
> Are you sure your dav server is directly at the root directory?
> 
> I'm using the webdav shares since long ago without problems:
> 
> davs://webdav.pemas.net/carlos works, it opens a dialog asking for my
> user + password.
> 
> but if I use davs://webdav.pemas.net/ then it fails. I think you have
> that problem, perhaps cadaver handles it in a better way than nautilus.
> 
> It worked for me with and without ssl.

The website states that "https://mediacenter.gmx.net" is the url to be
used for webdav access with Windows. If I look at this URL with firefox,
I have to log in with username and password, before it gives an error
message "The requested URL / was not found on this server.". But Firefox
is a web browser, not a webdav client...

Anyway, nautilus doesn't even ask for a login.

When I capture the data nautilus sends (by connecting to
dav://localhost:12345 and running netcat -l -p 12345),
it looks like this:

PROPFIND / HTTP/1.1
Host: localhost:12345
User-Agent: gnome-vfs/2.8.0 neon/0.24.6
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers
Depth: 0
Content-Length: 275
Content-Type: application/xml

<?xml version="1.0" encoding="utf-8"?>
<propfind xmlns="DAV:"><prop>
<getlastmodified xmlns="DAV:"/>
<creationdate xmlns="DAV:"/>
<resourcetype xmlns="DAV:"/>
<getcontenttype xmlns="DAV:"/>
<getcontentlength xmlns="DAV:"/>
<getetag xmlns="DAV:"/>
</prop></propfind>

If I paste this into 'telnet mediacenter.gmx.net 80', I get:

HTTP/1.1 401 Unauthorized
Date: Sun Sep 19 15:08:29 2004
Server: GMX-DAV-Proxy
Content-Length: 8028
WWW-Authenticate: Basic realm="GMX MediaCenter"

[...]

which is about the same response that cadaver gets on its request.
Cadaver's request itself looks quite different:

OPTIONS / HTTP/1.1
Host: localhost:12345
User-Agent: cadaver/0.22.1 neon/0.24.5
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers

Anyway, I think nautilus ought to ask for my username and password,
since it receives a http 401. Even if the path is incorrect, which I
doubt.

Sebastian


-- 
We are Pentium of Borg. Division is futile. You will be approximated.