File case sensitivity

Brent McDowell brent at thezoo.co.nz
Thu Nov 4 20:26:15 GMT 2004


Hi;

I've run into a somewhat interesting issue in regards to IIS serving 
content from a samba share. Occasionly, IIS will return 404 errors for 
content that does infact exist.

>From the samba machine, I captured the following:

This is an example of the site http://www.mysite.co.nz/foo not working:

[2004/11/04 09:30:14, 3] smbd/trans2.c:call_trans2qfilepathinfo(2353)
  call_trans2qfilepathinfo: SMB_VFS_STAT of USER/MYSITE.CO.NZ/HTDOCS/FOO failed (No such file or directory)
[2004/11/04 09:30:14, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2004/11/04 09:30:14, 3] smbd/error.c:error_packet(114)
  error packet at smbd/trans2.c(2217) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND
[2004/11/04 09:30:14, 3] smbd/process.c:process_smb(890)


This is an example of the same site working, after I visited
http://www.mysite.co.nz/ first, a few seconds later:

[2004/11/04 09:34:02, 3] smbd/trans2.c:call_trans2qfilepathinfo(2361)
  call_trans2qfilepathinfo user/mysite.co.nz/htdocs/foo (fnum = -1) level=1004 call=5 total_data=0
[2004/11/04 09:34:02, 3] smbd/process.c:process_smb(890)
  Transaction 8253551 of length 154
[2004/11/04 09:34:02, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 14455)
[2004/11/04 09:34:02, 3] smbd/trans2.c:call_trans2qfilepathinfo(2331)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2004/11/04 09:34:02, 3] smbd/trans2.c:call_trans2qfilepathinfo(2361)
  call_trans2qfilepathinfo user/mysite.co.nz/htdocs/foo (fnum = -1) level=1004 call=5 total_data=0
[2004/11/04 09:34:02, 3] smbd/process.c:process_smb(890)
  Transaction 8253552 of length 164

So the issue appears to be that samba is returning 
NT_STATUS_OBJECT_PATH_NOT_FOUND errors when IIS is requesting the 
file/path in uppercase. What I don't understand is that samba, by default, 
is configured to ignore case sensitivity.

Has anyone else had similar problems and/or could point me in the right 
direction?

TIA.

--Brent


More information about the samba-technical mailing list