Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 580855

Summary: Cannot delete folder contents if the name of the folder contains spaces
Product: Red Hat Enterprise Linux 5 Reporter: Huzaifa S. Sidhpurwala <huzaifas>
Component: gnome-vfs2Assignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.5CC: cmeadors, jwest, manuel.wolfshant, mgrigull, mishu, philip.r.schaffner, pvine, tao, tis, tpelka, tsmetana, vbenes
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gnome-vfs2-2.16.2-7.el5 Doc Type: Bug Fix
Doc Text:
Technical information could be found in the description of previously released RHBA-2010:0436-1 erratum.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-08 05:14:35 UTC Type: ---
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: 589874, 807971    
Attachments:
Description Flags
screenshot
none
gnome-vfs-2.16.2-same-fs.patch none

Description Huzaifa S. Sidhpurwala 2010-04-09 09:30:21 UTC
Description of problem:
In RHEL 5.5 fully updated, When you have a folder name with spaces, any files inside it cannot be deleted.

Version-Release number of selected component (if applicable):
RHEL 5.5 32 bit fully updated.
nautilus-2.16.2-7.el5

How reproducible:
Always

Steps to Reproduce:
1. Create a folder called "my folder" for what ever name, but has to have
spaces in between the words
2. Create a file inside that
3. Delete that file. It cannot be deleted
  
Actual results:
File cannot be deleted

Expected results:
You should be able to delete this

Additional info:
This works in RHEL 5.4 and appears to be a regression in 5.5

Attached: Screenshot.

Comment 1 Huzaifa S. Sidhpurwala 2010-04-09 09:34:56 UTC
Created attachment 405496 [details]
screenshot

Comment 3 Tomáš Bžatek 2010-04-15 16:02:04 UTC
Created attachment 406847 [details]
gnome-vfs-2.16.2-same-fs.patch

This is the modified version of patch included in 5.5 release. Turns out that gnome-vfs returns escaped paths when extracted from the URI. This sounds weird and unexpectable, certainly not documented. Since we do g_stat() later then, we need an unescaped path as stored on the disk.

Comment 4 Huzaifa S. Sidhpurwala 2010-04-16 06:55:16 UTC
Hi Tomas, 
Any test rpms you could provide, which we can test?

Comment 7 Tomáš Bžatek 2010-04-19 08:59:59 UTC
*** Bug 579502 has been marked as a duplicate of this bug. ***

Comment 13 manuel wolfshant 2010-05-19 11:43:55 UTC
I have just verified, the patch fixes the problem.

Comment 14 Phil Schaffner 2010-05-20 12:53:36 UTC
See also CentOS bug #4322
http://bugs.centos.org/view.php?id=4322

Comment 23 Tomáš Bžatek 2012-07-19 12:36:06 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Technical information could be found in the description of previously released RHBA-2010:0436-1 erratum.

Comment 26 errata-xmlrpc 2013-01-08 05:14:35 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/RHSA-2013-0131.html