case sensitivity issues over SMB2 or above

Bug #1593944 reported by Paul Smedley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba
Unknown
Unknown
samba (Ubuntu)
New
High
Unassigned

Bug Description

https://bugzilla.samba.org/show_bug.cgi?id=11438 fixes a bug with case sensitivity that affects OS/2 clients.

It would be great to have this fix on Ubuntu server

[IMPACT]: Bug fixes the user experience for users of operating systems that don't support case sensitive file systems - eg dos / windows / OS/2.

[TEST CASE]:
Problems exist with listing directories using case insensitive names over SMB2 or above.

I have a folder called 'Desktop' in a share called Public on my Samba server running on Ubuntu.

Using SMB3, trying to list the directory fails if I use the case-insensitive name.

psmedley@XPS13:~$ smbclient //192.168.1.200/Public -mSMB3 -d 10 --username=psmedley -N 2> smbclient.log
Anonymous login successful

smb: \>
smb: \> ls desktop
NT_STATUS_NO_SUCH_FILE listing \desktop
smb: \> ls Desktop
  Desktop D 0 Mon Jul 20 13:51:45 2015

  -1366264008 blocks of size 1024. -1997689408 blocks available
smb: \> exit

Using SMB1, running ls with the case-insensitive name works fine.
psmedley@XPS13:~$ smbclient //192.168.1.200/Public -d 10 --username=psmedley -N 2> smbclient.log
Anonymous login successful
smb: \> ls desktop
  Desktop D 0 Mon Jul 20 13:51:45 2015

  65535 blocks of size 33553920. 65535 blocks available

This occurs with 'case sensitive' set to auto or no in smb.conf

[Regression Potential]:
Low - patch is quite small - has been tested by the Samba release team and included in Samba 4.3.10 and 4.4.4

Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in samba (Ubuntu):
importance: Undecided → High
Revision history for this message
Paul Smedley (paul-smedley) wrote :

Yes, it's fixed in 4.3.10. I asked about the timing on 4.3.10 on #ubuntu on freenode, and it was suggested that the Ubuntu team may not update the base code to 4.3.10, and if I need a specific fix, I should reference the samba patch in a bug report - hence this ticket.

If there's a plan to update samba to 4.3.10 on Ubuntu - I'm all for that option :)

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Looks like there are actually three patches, the third of which may not be required for a minimal fix: https://attachments.samba.org/attachment.cgi?id=12064

To have this fixed in a stable release, please comment with a justification against https://wiki.ubuntu.com/StableReleaseUpdates#When and complete steps 1 through 4 in https://wiki.ubuntu.com/StableReleaseUpdates#Procedure - and go ahead with all the steps if you can. Note that that SRU team would need to make a final decision.

summary: - Please apply upstream fix for Samba 4.3.x
+ case sensitivity issues over SMB2 or above
Revision history for this message
Paul Smedley (paul-smedley) wrote :

Description updated per https://wiki.ubuntu.com/StableReleaseUpdates#Procedure - I will go post this bug on #ubuntu-bugs now

description: updated
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.