Finder does not show labels in 12.0-U2, but does in 11.3-u4
Description
Problem/Justification
Impact
relates to
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
Andrew Walker June 2, 2022 at 8:56 PM
Manual admin tool has already been merged for 13.
Simon Pierre Desrosiers July 14, 2021 at 5:54 PM
Thank you, I look forward to trying this new tool.
Andrew Walker July 14, 2021 at 5:37 PM
I've written a tool to normalize / migrate different xattr naming schemas (with a proper manpage). Currently being reviewed upstream. Will backport once it's through review process.
Simon Pierre Desrosiers March 6, 2021 at 4:10 AM
No worries, this is nor urgent, just a thorn in my side.
Its a good thing you are there, its totally absent from the man page of mvxattr.
The attribute changed correctly, but still no change.
root@sancy:/mnt/tank/principal/Delos/transport # lsextattr user MonFichier2
MonFichier2 AFP_AfpInfo DosStream.com.apple.metadata_kMDItemUserTags
root@sancy:/mnt/tank/principal/Delos/transport # getextattr -s user DosStream.com.apple.metadata\042_kMDItemUserTags MonFichier2/
MonFichier2/ "bplist00\M-#\^A\^B\^CXPurple\0123VBlue\0124WGreen\012\^L\^U\^\\000\000\000\000\000\000\^A\^A\000\000\000\000\000\000\000\^D\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000$\000"
root@sancy:/mnt/tank/principal/Delos/transport #
But I cannot see anything in the finder, and no extended attributes can be seen in the terminal on the mac :
[Ananke:: DING!] [principal/Delos/transport] > xattr -l MonFichier2
[Ananke:: 23:00] [principal/Delos/transport] >
Whilst for another file
[Ananke:: 23:01] [principal/Delos/test] > xattr -l monFichier/
com.apple.metadata:_kMDItemUserTags:
00000000 62 70 6C 69 73 74 30 30 A4 01 02 03 04 56 47 72 |bplist00.....VGr|
00000010 61 79 0A 31 58 50 75 72 70 6C 65 0A 33 56 42 6C |ay.1XPurple.3VBl|
00000020 75 65 0A 34 57 47 72 65 65 6E 0A 32 08 0D 14 1D |ue.4WGreen.2....|
00000030 24 00 00 00 00 00 00 01 01 00 00 00 00 00 00 00 |$...............|
00000040 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000050 2C |,|
00000051
com.apple.FinderInfo:
00000000 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 |................|
00000010 00 00 00 00 00 00 00 00 24 19 CE B6 24 19 00 00 |........$...$...|
00000020
[Ananke:: 23:01] [principal/Delos/test] >
Andrew Walker March 5, 2021 at 2:54 PM
Sorry it took a while to respond. I was load balancing between tickets. Since mvxattr uses samba's lib/xattr wrapper, you need to specify xattr namespace as a prefix to the xattr name (separated by a period) "user <attr>" in FreeBSD CLI tools becomes "user.<attr>" in tools using samba's libraries. Here is usage info for mv xattr with example of FreeBSD commands to go with it:
root@truenas[/mnt/tank/TEST]# touch testfile.txt
root@truenas[/mnt/tank/TEST]# setextattr user myattr thing testfile.txt
root@truenas[/mnt/tank/TEST]# lsextattr user testfile.txt
testfile.txt myattr
root@truenas[/mnt/tank/TEST]# getextattr user myattr testfile.txt
testfile.txt thing
root@truenas[/mnt/tank/TEST]# mvxattr -s user.myattr -d user.DosStream.myattr testfile.txt
root@truenas[/mnt/tank/TEST]# lsextattr user testfile.txt
testfile.txt DosStream.myattr
root@truenas[/mnt/tank/TEST]# getextattr user DosStream.myattr testfile.txt
testfile.txt thing
Since I upgraded yesterday to 12.0-U2 from 11.3-U4, I lost hundreds of labels ( macosx meta data ) that dont show anymore in the finder. The metadata to add labels ( colors ) seems to still be there, but the labels do not show in macosx finder anymore.
If I reboot to 11.3-U4, labels are back in the finder.
Here is the meta data as seen from macosx in 11.3-U4 :
[Ananke:: 22:00] [principal/Delos/test] > xattr -l monFichier/
com.apple.FinderInfo:
00000000 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 |................|
00000010 00 00 00 00 00 00 00 00 24 19 CE B6 24 19 00 00 |........$...$...|
00000020
com.apple.metadata:_kMDItemUserTags:
00000000 62 70 6C 69 73 74 30 30 A2 01 02 58 50 75 72 70 |bplist00...XPurp|
00000010 6C 65 0A 33 56 42 6C 75 65 0A 34 08 0B 14 00 00 |le.3VBlue.4.....|
00000020 00 00 00 00 01 01 00 00 00 00 00 00 00 03 00 00 |................|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 1B |..............|
0000003e
xattr: monFichier/: No such xattr: DosStream.com.apple.metadata:_kMDItemUserTags:$DATA
Here is the same output, but when the NAS runs 12.0-U2 :
[Ananke:: 22:09] [principal/Delos/test] > ls -ld@ monFichier/
drwx------@ 1 simonpie staff 16384 22 sep 13:04 monFichier/
com.apple.metadata:_kMDItemUserTags 62
DosStream.com.apple.metadata:_kMDItemUserTags:$DATA 81
DosStream.AFP_AfpInfo:$DATA 60
[Ananke:: 22:09] [principal/Delos/test] > xattr -l monFichier/
com.apple.metadata:_kMDItemUserTags:
00000000 62 70 6C 69 73 74 30 30 A2 01 02 58 50 75 72 70 |bplist00...XPurp|
00000010 6C 65 0A 33 56 42 6C 75 65 0A 34 08 0B 14 00 00 |le.3VBlue.4.....|
00000020 00 00 00 00 01 01 00 00 00 00 00 00 00 03 00 00 |................|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 1B |..............|
0000003e
xattr: monFichier/: No such xattr: DosStream.com.apple.metadata:_kMDItemUserTags:$DATA
[Ananke:: 22:09] [principal/Delos/test] >
As can be seen, the meta data is still there, but is no longuer interpreted by the Finder. Although, there is a finder info missing in 12.0.