[cifs-protocol] [REG:117102016529426] SMB2 File Rename
Jeff McCashland
jeffm at microsoft.com
Fri Oct 20 14:35:27 UTC 2017
[DocHelp to BCC, casemail on CC, SR ID on Subject]
Hi Andreas,
Thank you for your protocols question. We have created SR 117102016529426 to track this issue. One of our engineers will respond soon.
Best regards,
Jeff McCashland | Senior Escalation Engineer | Microsoft Protocol Open Specifications Team
Phone: +1 (425) 703-8300 x38300 | Hours: 9am-5pm | Time zone: (UTC-08:00) Pacific Time (US and Canada)
Local country phone number found here: http://support.microsoft.com/globalenglish | Extension 1138300
We value your feedback. My manager is Rama Ganesan (ramagane), +1 (425) 703-8712
-----Original Message-----
From: Andreas Schneider [mailto:asn at samba.org]
Sent: Friday, October 20, 2017 6:21 AM
To: Interoperability Documentation Help <dochelp at microsoft.com>
Cc: cifs-protocol at lists.samba.org
Subject: SMB2 File Rename
Hello,
I disovered that a file rename operation (SetInfo with
FILE_RENAME_INFORMATION_TYPE_2) fails for a SMB3 connection but works for SMB1.
I've run smbclient from Samba again Windows 2012:
File rename (move) over SMB1 with smbclient:
bin/smbclient //win-dc02.earth.milkyway.site/Test -Ubob1%Secret007! -mNT1 Try "help" to get a list of possible commands.
smb: \> cd dir1
smb: \dir1\> rename README ..\dir2\README
smb: \dir1\>
This works!
File rename (move) over SMB3 with smbclient:
bin/smbclient //win-dc02.earth.milkyway.site/Test -Ubob1%Secret007! -mSMB3 Try "help" to get a list of possible commands.
smb: \> cd dir1
smb: \dir1\> rename README ..\dir2\README NT_STATUS_OBJECT_NAME_NOT_FOUND renaming files \dir1\README -> \dir1\..
\dir2\README
smb: \dir1\>
As you can see, it fails with NT_STATUS_OBJECT_NAME_NOT_FOUND.
I do not see that we're doing anything wrong in the SetInfo request. The doc does not mention that '..' is not allowed.
Is a path of dir1\..\dir2\file not allowed?
Attached are the network traces.
Thanks for your help!
Best regards,
Andreas
--
Andreas Schneider GPG-ID: CC014E3D
Samba Team asn at samba.org
https://na01.safelinks.protection.outlook.com/?url=www.samba.org&data=02%7C01%7Cdochelp%40windows.microsoft.com%7Cdb860571ade549e87bc208d517bd7967%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636441024913131046&sdata=6IkdMZZH7l7MzpVZTpI2%2FcQKHLiv1jq0wxb6iOBTidg%3D&reserved=0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rename_nt1.pcapng
Type: application/octet-stream
Size: 12760 bytes
Desc: rename_nt1.pcapng
URL: <http://lists.samba.org/pipermail/cifs-protocol/attachments/20171020/48100070/rename_nt1-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rename_smb3.pcapng
Type: application/octet-stream
Size: 14692 bytes
Desc: rename_smb3.pcapng
URL: <http://lists.samba.org/pipermail/cifs-protocol/attachments/20171020/48100070/rename_smb3-0001.obj>
More information about the cifs-protocol
mailing list