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 590738 - [PATCH] Calculates wrong mount_prefix (has trailing /)
[PATCH] Calculates wrong mount_prefix (has trailing /)
Status: RESOLVED DUPLICATE of bug 590730
Product: gvfs
Classification: Core
Component: webdav backend
1.2.x
Other All
: Normal minor
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-08-04 14:14 UTC by Mads Chr. Olesen
Modified: 2009-08-13 14:27 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Short patch, removing a trailing slash before mounting (489 bytes, patch)
2009-08-04 14:15 UTC, Mads Chr. Olesen
none Details | Review
Don't do anything if mount_prefix == '/' (534 bytes, patch)
2009-08-04 20:27 UTC, Mads Chr. Olesen
none Details | Review

Description Mads Chr. Olesen 2009-08-04 14:14:56 UTC
Please describe the problem:
The webdav tries to calculate the mount_prefix, by traversing up the directory it is asked to mount, until it encounters an error.
It fails to remove a trailing slash from the final path, resulting in extra mounts happening.

Steps to reproduce:
1. Go to dav://webserver/dav/docs in nautilus. A mount is now created, with mount_prefix=="/dav/" (verify with gvfs-info dav://webserver/dav/docs)
2. Use the up-arrow to go one directory up
3. An extra mount is created, with mount_prefix=="/dav"


Actual results:
An extra mount is created, meaning that two mounts now exist for the same location.

Expected results:
No extra mount created.

Does this happen every time?
Yes

Other information:
Comment 1 Mads Chr. Olesen 2009-08-04 14:15:34 UTC
Created attachment 139869 [details] [review]
Short patch, removing a trailing slash before mounting
Comment 2 Mads Chr. Olesen 2009-08-04 20:27:15 UTC
Created attachment 139901 [details] [review]
Don't do anything if mount_prefix == '/'
Comment 3 Mads Chr. Olesen 2009-08-13 14:27:28 UTC

*** This bug has been marked as a duplicate of 590730 ***