Bug 1011835

Summary: An error is displayed when renaming directory or file on WebDAV location [gvfs webdav backend]
Product: Red Hat Enterprise Linux 6 Reporter: Martin Schuppert <mschuppe>
Component: gvfsAssignee: Ondrej Holy <oholy>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.4CC: jaroslaw.polok, mbarta, mclasen, oholy, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gvfs-1.4.3-17.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 07:06:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 994246, 1056252    
Attachments:
Description Flags
gvfs-mount_prefix-async_patch_call
none
gvfs-mount_prefix-async_patch_call.patch
mschuppe: review?
gvfs-re-root-mount_prefix
none
gvfs-re-root-mount_prefix.patch
mschuppe: review?
gvfs-re-root-set_display_name mschuppe: review?

Description Martin Schuppert 2013-09-25 08:32:44 UTC
Description of problem:

When use "Connect to server" in Nautilus Configure and configure a webdav share it is not possible to rename files or folders.

The following messages will be displayed:
"The item could not be renamed. Sorry, could not rename "dir1" to "dir2": The specified location is not mounted".

"The item could not be renamed. Sorry, could not rename "file1" to "file2": The specified location is not mounted".


Version-Release number of selected component (if applicable):
* RHEL 6.4
* gvfs-1.4.3-15.el6.x86_64 ( webdav backend )
* nautilus-2.28.4-19.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. Setup basic webdav server 
2. use "Connect to server" in Nautilus Configure and configure a webdav share
3. create a file/directory
4. rename file/directory which results in an error message

Actual results:
Error message is being displayed:
"The item could not be renamed. Sorry, could not rename "file1" to "file2": The specified location is not mounted".

Expected results:
No error message, the file/directory will be renamed

Additional info:
Ref:
https://bugzilla.gnome.org/show_bug.cgi?id=579276
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/512496

Solved upstream:
The problem here was that the path the backend supplied back to the client was
relative to the mount_prefix of the mount; so the client needs to resolve that
path and append the mount_prefix before creating a new GDaemonFile with the new
path.

Fixed on master with the following commit:
commit d4049d3ac0741c3700a029a24c869dfafd840dc2
Author: Christian Kellner <gicmo>
Date:   Thu May 12 10:53:04 2011 +0200

    daemonfile: Re-root the path in set_display_name ()

    The path we get as a result of a set_display_name operation has to be
    re-rooted with the mount_prefix of the specific mount.
    This fixes the "Location not mounted" error that we currently get for
    e.g. WebDAV mounts with a mount_prefix after renaming of files.

And the supportive commits:
commit 7a2942f7bdf39ebfc31ea90c0685b5890d30964d
commit 66bc0189d836130768df41900f3cf29723bbd870

Comment 3 RHEL Program Management 2013-10-13 23:07:02 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 4 Jarek Polok 2014-01-23 12:10:53 UTC
Created attachment 854335 [details]
gvfs-mount_prefix-async_patch_call

Comment 5 Martin Schuppert 2014-01-23 12:11:15 UTC
Created attachment 854336 [details]
gvfs-mount_prefix-async_patch_call.patch

Comment 6 Jarek Polok 2014-01-23 12:11:40 UTC
Created attachment 854337 [details]
gvfs-re-root-mount_prefix

Comment 7 Martin Schuppert 2014-01-23 12:11:53 UTC
Created attachment 854338 [details]
gvfs-re-root-mount_prefix.patch

Comment 8 Martin Schuppert 2014-01-23 12:12:45 UTC
Created attachment 854339 [details]
gvfs-re-root-set_display_name

Comment 9 Jarek Polok 2014-01-23 12:13:35 UTC
Attached patches seem to fix the problem.

(Hello Martin,Seems we uploaded patches simultaneously ;-))

Jarek

Comment 18 errata-xmlrpc 2014-10-14 07:06:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1499.html