macOS Finder tags on folders make them not removable from the client

PetShwarkUD

Cadet
Joined
Jul 22, 2022
Messages
1
I have a TrueNAS Mini E+ running the latest TrueNAS 13 (U5.3) with an SMB share setup with the "Multiprotocol (AFP/SMB) shares" preset. The underlying dataset has "full control" (inherited) permissions assigned to a couple local users. On macOS clients (supported macOS versions - Big Sur or newer), if someone creates a folder on the share and assigns color tags to them, the folders are not removable from the client. Even removing the tag doesn't help. I've determined that behind the scenes the tag metadata is not removable from the client, so the folder appears non-empty and, therefore, non-removable.

It's worth noting that my end user that reported this issue to me was not having this problem with the 13U3 version of TrueNAS Core. I don't have a NAS lying around that I can revert back to this older version to test. Since this seems like a bug in TrueNAS Core 13U5.3, I reported this as a bug. I wanted to post this here so that others who might encounter this can be aware of the issue.

Here's an example. On the share from a macOS Ventura client, I can create a folder, say "GARBAGE".
Screenshot 2023-08-11 at 12.09.41 PM.png


I can put stuff in the folder, like another folder, "MORE GARBAGE".
Screenshot 2023-08-11 at 12.10.38 PM.png


If I attempt to delete the "GARBAGE" folder, it works fine.
Screenshot 2023-08-11 at 12.12.45 PM.png


Screenshot 2023-08-11 at 12.13.04 PM.png


If I repeat this process but instead add a color tag to the "More Garbage" folder, I am unable to delete the "Garbage" folder.
Screenshot 2023-08-11 at 12.13.52 PM.png


I cannot remove the inner "More Garbage" folder.
Screenshot 2023-08-11 at 12.33.52 PM.png


Even if I clear the color tag from the "More Garbage" folder, I still cannot remove the "Garbage" or inner "More Garbage" folder.
Screenshot 2023-08-11 at 12.35.03 PM.png


Screenshot 2023-08-11 at 12.35.31 PM.png


If I investigate this from the client using the "xattr" command to look at the extended attributes on the folders, I see that the "More Garbage" folder still has its "com.apple.metadata:_kMDItemUserTags" attribute even though it's empty.

Screenshot 2023-08-11 at 12.38.18 PM.png


Any ideas where I might be able to work around this?
 

Attachments

  • Screenshot 2023-08-11 at 12.38.18 PM.png
    Screenshot 2023-08-11 at 12.38.18 PM.png
    1.2 MB · Views: 68

JoeHöpfner

Dabbler
Joined
Mar 23, 2023
Messages
22
Hello, I have a similar problem with TrueNAS-13.0-U5.1 and SMB3.1.1. If I remove this auxiliariy paramters:

vfs objects=zfs_space zfsacl streams_xattr

then in Mac OS Ventura but also older OS versions, the folders can not set color tag. With the vfs objects, I get permission problems, when creating new files with Indesign for example. Either I can color the folders or I have permission problems. Unfortunately, I do not know how I can continue there.
 

Attachments

  • Bildschirmfoto 2023-09-29 um 09.55.11.png
    Bildschirmfoto 2023-09-29 um 09.55.11.png
    68.3 KB · Views: 50
Top