macOS Client SMB Rename/Move Issue

Originator:richard.uurazzle.glaser
Number:rdar://34441886 Date Originated:14-Sep-2017 02:49 PM
Status:Open Resolved:
Product:macOS + SDK Product Version:10.12.6
Classification:Serious Bug Reproducible:Always
 
Summary:
Folders on a SMB share point created by Windows Server File and Storage Services, will not allow themselves to be renamed or moved. When attempting a rename, macOS will ask for an administrative password, and then display the following error “You don’t have permission to rename the item “External Disks”. This occurred for use with Microsoft Server 2012r2, but have collaborated with other enterprises and it has be verified with multiple versions of Microsoft Windows Server and other non-Apple SMB implementations.


Steps to Reproduce:
Here is a blog post and video that shows the steps to reproduce the issue step-by-step:

https://apple.lib.utah.edu/mac-bug-connecting-to-non-apple-smb-shares/

Description of steps in the video.

1. Create folder A
2. Create folder b
3. Create folder C
4. Save document into folder C, named test.rtf. Quit TextEdit.
5. Attempt to rename b, request for admin access.
6. Attempt to rename C, success
7. Attempt to rename A, request for admin access.
8. (After video ends) Delete entire folder structure without error.

I have also seen error -36 when trying to rename C. But it’s rare.

Expected Results:
Expect macOS client to allow user connected to SMB file share to be able to rename & move folders without issues.

Actual Results:
But, with multiple macOS versions up-to macOS 10.12.6 user will get errors and/or prompts for administrative permissions which doesn’t solve issue if they do have administrative permissions.

Version:
10.12.6

Notes:
Opened a problem ticket with Microsoft Enterprise support case number: 115110913354757. And AppleCare Enterprise case number: 838648

Comments

Tested in Mojave macOS 10.14.1 (18B75) and is still a problem.

I think this is easier to reproduce if you have an image in folder C.

If you have a JPG in folder C and have "Show icon preview" ticked on, then navigate to folder C, the Windows server will register the JPG file as open in read mode. If you then navigate back and try to rename folder B it will prompt for authentication and not allow the folder name to be changed.

If you unmount the server share then re-mount you can rename folder B. If you have multiple users connected though there will be files open all the time, asking everyone to unmount the server in order to rename a folder is not realistic.

Tested in Mojave macOS 10.14 (18A391) and appears fixed

Followed the steps as shown in the video exactly and all 3 folders could be renamed without elevation

By alias.zero2097 at Oct. 17, 2018, 4:48 a.m. (reply...)

macOS High Sierra 10.13 Appears to Fix Bug

We tested the bug with macOS High Sierra 10.13 GM (17A365) and it appears to be fixed. We couldn't replicate the issue.

By richard.uurazzle.glaser at Sept. 26, 2017, 8:27 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!