Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-108266

SMB Apple extended attributes corruption

    XMLWordPrintable

    Details

    • Impact:
      Medium

      Description

      During testing I encountered a strange issue while copying certain files via SMB
       
      macOS -> TrueNas = Ok
      Illumos -> TrueNAS via macOS client = OK
      Illumos -> TrueNAS via Windows client = OK
      TrueNas -> TrueNas via macOS client = OK
      TrueNas -> TrueNas via Windows client = Fail

      Uppon inspection of the problem files I noticed that TrueNAS is mangling the extended attributes of these files.
      Windows client are having a cow while Mac clients deal with it.

      Attributes of the file pior to copying to TrueNAS

      iPro:$ xattr -l hesitate\ smaller.zip 
      com.apple.lastuseddate#PS:
      00000000  A0 EA E2 5E 00 00 00 00 E9 0D 05 0D 00 00 00 00  |...^............|
      00000010
      com.apple.metadata:kMDItemWhereFroms:
      00000000  62 70 6C 69 73 74 30 30 A2 01 02 5F 10 52 68 74  |bplist00..._.Rht|
      00000010  74 70 73 3A 2F 2F 63 2E 6E 61 34 39 2E 63 6F 6E  |tps://removed4sa|
      00000020  74 65 6E 74 2E 66 6F 72 63 65 2E 63 6F 6D 2F 73  |fety.sssss.com/s|
      00000030  65 72 76 6C 65 74 2F 73 65 72 76 6C 65 74 2E 46  |ervlet/servlet.F|
      00000040  69 6C 65 44 6F 77 6E 6C 6F 61 64 3F 66 69 6C 65  |ilessssssss?file|
      00000050  3D 30 30 50 35 41 30 30 30 30 31 38 7A 79 31 32  |=00P5A000018zy12|
      00000060  5F 10 1C 68 74 74 70 73 3A 2F 2F 6E 61 34 39 2E  |_..https://na49.|
      00000070  73 61 6C 65 73 66 6F 72 63 65 2E 63 6F 6D 2F 08  |salesforce.com/.|
      00000080  0B 60 00 00 00 00 00 00 01 01 00 00 00 00 00 00  |.`..............|
      00000090  00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
      000000A0  00 7F                                            |..|
      000000a2
      com.apple.quarantine: 0081;5ee2e992;Chrome;94935943-DBE9-4B81-8D6F-7F5D3F6699DB

      Attributes after copying to TrueNAS (on TrueNAS)

      iPro:$ xattr -l hesitate\ smaller.zip 
      com.apple.lastuseddate#PS:
      00000000  A0 EA E2 5E 00 00 00 00 E9 0D 05 0D 00 00 00 00  |...^............|
      00000010
      com.apple.quarantine: 0081;5ee2e992;Chrome;94935943-DBE9-4B81-8D6F-7F5D3F6699DB
      xattr: hesitate smaller.zip: No such xattr: com.apple.metadata:kMDItemWhereFroms
      # Global parameters
      [global]
              ads dns update = No
              aio max threads = 2
              allow trusted domains = No
              bind interfaces only = Yes
              client ldap sasl wrapping = seal
              disable spoolss = Yes
              dns proxy = No
              domain master = No
              enable web service discovery = Yes
              kerberos method = secrets and keytab
              kernel change notify = No
              load printers = No
              local master = No
              logging = file
              max log size = 51200
              nsupdate command = /usr/local/bin/samba-nsupdate -g
              preferred master = No
              realm = EXAMPLE.COM
              registry shares = Yes
              restrict anonymous = 2
              security = ADS
              server role = member server
              server string = TrueNAS Server
              template shell = /bin/sh
              unix extensions = No
              winbind cache time = 7200
              winbind enum groups = Yes
              winbind enum users = Yes
              winbind max domain connections = 10
              winbind use default domain = Yes
              workgroup = SKYSOUND
              idmap config *: range = 90000001-100000000
              idmap config skysound: range = 100000001-200000000
              idmap config skysound: backend = rid
              fruit:nfs_aces = No
              idmap config * : backend = tdb
              directory name cache size = 0
              dos filemode = Yes
      
      
      [nex04show]
              ea support = No
              kernel share modes = No
              path = /mnt/pool0/nex04show
              posix locking = No
              read only = No
              vfs objects = aio_fbsd fruit streams_xattr shadow_copy_zfs ixnas
              fruit:resource = stream
              fruit:metadata = stream
              nfs4:chown = true
      

       

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                releng Release Council
                Reporter:
                q66 Francis Aitken
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: