After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 529349 - Redirects with username doesn't work
Redirects with username doesn't work
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: webdav backend
0.2.x
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
: 585175 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-04-22 09:16 UTC by Mads Chr. Olesen
Modified: 2009-10-08 22:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
This patch fixes the issue, by copying the username and password (599 bytes, patch)
2008-04-22 09:17 UTC, Mads Chr. Olesen
accepted-commit_now Details | Review

Description Mads Chr. Olesen 2008-04-22 09:16:54 UTC
Please describe the problem:
If accessing an DAV url with an username, eg. dav://username@server.com/dav and the server redirects to e.g. /dav/, the redirect is not considered the same, because the username for the two URIs are different.

Steps to reproduce:
1. Access an DAV url with an username, that does an redirect
2. Fail with an dialog with "HTTP Error: Permanently moved"


Actual results:


Expected results:


Does this happen every time?
Yes

Other information:
Comment 1 Mads Chr. Olesen 2008-04-22 09:17:47 UTC
Created attachment 109674 [details] [review]
This patch fixes the issue, by copying the username and password
Comment 2 Matthias Clasen 2008-08-16 00:22:16 UTC
Patch looks simple enough. Gicmo ?
Comment 3 Christian Kellner 2009-02-10 12:53:31 UTC
Sorry for not being responsive enough. Looks good. Commit please.
Comment 4 Dan Winship 2009-02-10 14:38:15 UTC
seems like it should check that the hostname is the same first...
Comment 5 Mads Chr. Olesen 2009-02-11 07:46:30 UTC
Hostname (In reply to comment #4)
> seems like it should check that the hostname is the same first...

Hostname equality is checked by the subsequent call to dav_uri_match.
Comment 6 Alexander Larsson 2009-02-16 10:01:50 UTC
commited.
Comment 7 Christian Kellner 2009-10-08 22:42:41 UTC
*** Bug 585175 has been marked as a duplicate of this bug. ***