gvfs refuses to authenticate to webdav share after mounting
Submitted by Stefan Rijnhart
Assigned to gvf..@..e.bugs
Link to original bug (#549415)
Description
Please describe the problem: Using Ubuntu Hardy, we cannot delete or create files or folders on our webdav share anymore. Connecting to a Gallery2 webdav share (nautilus dav://hostname/g2/w/) which allows anonymous reading works. When trying to upload a photo, we expect an authorization dialog, but nautilus only says "Authorization required", letting me skip or cancel. This works as expected in Feisty and in some other operating system.
When we disable anonymous access to Gallery2, we can authenticate through Nautilus at mount time and uploading works fine.
We have gvfs version 0.2.5-0ubuntu2 installed.
Steps to reproduce:
- nautilus dav://hostname/g2/w/
- copy file to nautilus window
Actual results: nautilus gives an error saying "Authorization required", letting me skip or cancel
Expected results: we expect an authorization dialog
Does this happen every time? Yes
Other information: Tcpflow of a failed session shows the obvious: first a PROPFIND on the directory, server replies 207, then a HEAD on the file gets a 401, then the file gets put and the server replies again with a 401.
When I try to read the gvfs source code, I see in daemon/gvfsbackenddav.c that at mount time authentication is governed by a function called "soup_authenticate_interactive". After a successful mount, the authentication handler gets switched to soup_authenticate_from_data. That sounds a little suspicious to me. I am hardly a programmer, so I have not yet gotten it to work when I play with the handlers, but maybe someone else can.
Version: 1.16.x