Ubuntu (8.10 with latest patches (patched on 16. Feb. 2009, 8.04.1 without patches) ignores filename cases on cifs-mount in an error-prone manner

Bug #330138 reported by Bugfinder
2
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Mount your home share from an openSuSE 11.1 Samba server or an 3.0.33 Samba server (gentoo) with
preserve case=yes
short preserve case=yes
case sensitive = auto
set on the server.

Try to enter into the "Documents" folder by typing
cd documents
(lower case by purpose)

Although it should fail (because it should be case sensitive), it will succeed and an ls shows your documents.

The big problem is that when you try to edit your files via your favorite editor (i.e. nano) or to show them via cat it will fail telling you that the file doesn't exist (but you were able to successfully enter the directory, you even could enter a subdirectory, but accessing the files inside will fail (although ls shows them to you)).

As other distributions doesn't show this issue when mounting Samba shares and it only happens with Ubuntu 8.10 and Ubuntu 8.04.1, but not with Debian 4.0 (can't remember the r-code, might be 4 or 6, can't check this now, sorry) and other distributions like openSuSE 11.1 mount them without this behavior, it seems to be a Ubuntu-specific bug.

Revision history for this message
Thierry Carrez (ttx) wrote :

Can you reproduce the problem using smbclient ?
What's the version of the OpenSuSE 11.1 samba server ?

Changed in samba:
status: New → Incomplete
Revision history for this message
Bugfinder (sysadmin-htl-leonding) wrote :

I have tested connecting a smbclient 3.0.33 (gentoo) against a samba server 3.0.33 (gentoo) and it seems to ignore the case (lets me enter the dokumente folder, but it is able to retrieve the file then --> ignores case completely, what I also could accept). When I use mount.cifs (gentoo) and try to change to "dokumente" (the folder's real name is Dokumente) I get "bash: cd: /mnt/blabla/dokumente: file or directory not found". Which I would like to be the behaviour of Ubuntu.

Could this be a matter of the cifs-kernel-module's version?

Can't check the exact version of the OpenSuSE 11.1 samba server, but
http://en.opensuse.org/Samba/Versions_in_SUSE_products
tells that it should be a 3.2.4 server.

I have tested cifs.mount with a Debian 5.0 client (Samba 3.2.x) against a samba server 3.0.33 and it prevents me from entering the "dokumente" folder, which is the right way.

Revision history for this message
Bugfinder (sysadmin-htl-leonding) wrote :

Using an Ubuntu client: smbclient ignores case and gets the files properly, mount.cifs ignores the case when changing the directory (cd dokumente works), but seems to be case sensitive when trying to access a file in a then non-existent path (dokumente/file doesn't exist, but Dokumente/file would exist).

Thierry Carrez (ttx)
Changed in samba:
status: Incomplete → New
Revision history for this message
Chuck Short (zulcss) wrote :

If possible can you try the jaunty version?

Thanks
chuck

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
Bugfinder (sysadmin-htl-leonding) wrote : Re: [Bug 330138] Re: Ubuntu (8.10 with latest patches (patched on 16. Feb. 2009, 8.04.1 without patches) ignores filename cases on cifs-mount in an error-prone manner

Sorry for not updating the bug report.

We have now upgraded to Ubuntu 9.04 and as far as I remember it worked
correctly with the release version, but as Ubuntu 8.04 was the only
version with long term support it should be corrected if not a newer long
term version is being released shortly.

> If possible can you try the jaunty version?
>
> Thanks
> chuck
>
> ** Changed in: samba (Ubuntu)
> Status: New => Incomplete
>
> --
> Ubuntu (8.10 with latest patches (patched on 16. Feb. 2009, 8.04.1 without
> patches) ignores filename cases on cifs-mount in an error-prone manner
> https://bugs.launchpad.net/bugs/330138
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “samba” package in Ubuntu: Incomplete
>
> Bug description:
> Mount your home share from an openSuSE 11.1 Samba server or an 3.0.33
> Samba server (gentoo) with
> preserve case=yes
> short preserve case=yes
> case sensitive = auto
> set on the server.
>
> Try to enter into the "Documents" folder by typing
> cd documents
> (lower case by purpose)
>
> Although it should fail (because it should be case sensitive), it will
> succeed and an ls shows your documents.
>
> The big problem is that when you try to edit your files via your favorite
> editor (i.e. nano) or to show them via cat it will fail telling you that
> the file doesn't exist (but you were able to successfully enter the
> directory, you even could enter a subdirectory, but accessing the files
> inside will fail (although ls shows them to you)).
>
> As other distributions doesn't show this issue when mounting Samba shares
> and it only happens with Ubuntu 8.10 and Ubuntu 8.04.1, but not with
> Debian 4.0 (can't remember the r-code, might be 4 or 6, can't check this
> now, sorry) and other distributions like openSuSE 11.1 mount them without
> this behavior, it seems to be a Ubuntu-specific bug.
>

Revision history for this message
Chuck Short (zulcss) wrote :

This bug report is being closed due to your last comment regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in samba (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.