GNOME Bugzilla – Bug 564563
file deletion when using smb shares. without a prompt (konqueror prompts).
Last modified: 2014-04-06 07:36:26 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
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...
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.
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?
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.
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.
db, suggest you read http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511744 and have a look at https://bugzilla.samba.org/show_bug.cgi?id=6036
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.
It seems to me from the samba bug like this has been fixed. Has anyone verified the gvfs behaviour with the fixed libsmbclient?
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