GNOME Bugzilla – Bug 582373
can't authenticate to webdav share
Last modified: 2009-05-26 10:27:20 UTC
Failing to authenticate to a webdav server (Apache) with gvfsd running in foreground I got this message from libsoup: (process:22387): libsoup-CRITICAL **: soup_auth_authenticate: assertion `username != NULL' failed It happens in soup_authenticate_interactive, after g_mount_source_ask_password is called to ask for a password. The problem is new_username, which is expected to be filled by that function, is not, and the next call fails: soup_auth_authenticate (auth, new_username, new_password);
Created attachment 134514 [details] [review] reuse known username if a new one is not set I don't know if it is caused by a wrong assumption about the semantics of g_mount_source_ask_password, or an error there. This patch considers g_mount_source_ask_password to be okay and fixes the issue by updating gvfsbackenddav.c, to use the previously known username if new_username is not filled by g_mount_source_ask_password.
Hey Frederic, I guess you are right. I committed the patch to master. Thanks a bunch.