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 564563 - file deletion when using smb shares. without a prompt (konqueror prompts).
file deletion when using smb shares. without a prompt (konqueror prompts).
Status: RESOLVED NOTGNOME
Product: gvfs
Classification: Core
Component: smb backend
unspecified
Other All
: Normal critical
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2008-12-15 05:56 UTC by db
Modified: 2014-04-06 07:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description db 2008-12-15 05:56:29 UTC
Please describe the problem:
When usingsmb shares (smb://server/foldername), files can be deleted without warning due to case sensitivity issues.  

Steps to reproduce:
1. have a samba server sharing files on an ext3 partition.
2. make a file called 123.abc
3. make a file called 123.ABC



Actual results:
The file called 123.abc is deleted and no warning message is shown to the user, the file is just deleted.

Expected results:
A prompt to show up and alert the user that they will overwrite / delete the original file. 

Does this happen every time?
Yes.

Other information:
https://bugs.edge.launchpad.net/ubuntu/+source/nautilus/+bug/195798
Comment 1 Wladston 2008-12-15 12:02:11 UTC
A variation of this is not being able to create the file 123.ABC, claiming that is already exists.

This bug that was introduced on this newer version results in a series of troubles for working with case-sensitive folders. You can't, for example, copy a folder name tEsT into a folder that alredy has a folder named TeSt, it will claim something about file not found...
Comment 2 tim 2009-01-06 02:50:00 UTC
If the share is an ext3 underlying filesystem, then set the samba share to be case-sensitive. 

The default setting for case-handling is probably "auto", which causes a nasty potential dataloss: 
If you have a file file.txt and another file1.txt, and then use Nautilus to rename file1.txt to file.TXT, then file.txt is overwritten with no warning. To fix this, make sure any ext3 shares are not left on the "auto" case-sensitive setting. 

However, setting the samba share to be case-sensitive yes stops this problem. 



Comment 3 tim 2009-01-14 00:04:44 UTC
I think this should be fixed in both Nautilus and samba.
Here is my samba report, which also has clear "reproduce" steps. 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511744


Can Nautilus or gvfs reliably detect if a file system is case sensitive? 


Comment 4 Josselin Mouette 2009-01-15 09:39:13 UTC
Following the discussion in this bug, this would be a bug in libsmbclient, not in gvfs/gnome-vfs. This could be confirmed by conducting a test with a patched libsmbclient.
Comment 5 db 2009-01-16 03:49:22 UTC
No. I do not agree. If libsmbclient is at fault, gvfs/gnome-vfs should NEVER be overwriting the file without a prompt. Like I stated above konqueror prompts (as does windows xp -> not sure about vista / the others). This is an old bug that I reported to gnome's bugzilla. 

This bug was reported on the  ubuntu launchpad site for some time (many months) in another not so critical form / it was tagged to be minor. 

It is not a minor bug (real data can be lost) and should be fixed in gvfs/gnome-vfs before pointing the finger at others. 
Comment 7 db 2009-01-16 07:25:34 UTC
Ok ^^ i wasn't aware of the bug you filed re- libsmb / samba. So i assume that gvfs/gnome-vfs followed documentation that wasn't entirely correct. 
Comment 8 Alexander Larsson 2009-03-02 08:51:35 UTC
It seems to me from the samba bug like this has been fixed. Has anyone verified the gvfs behaviour with the fixed libsmbclient?
Comment 9 Ross Lagerwall 2014-04-06 07:36:26 UTC
It works as expected now:
$ gvfs-save smb://localhost/tmp/123.abc
hello world

$ gvfs-save smb://localhost/tmp/123.ABC
goodbye cruel world

$ gvfs-ls smb://localhost/tmp/
123.ABC
123.abc