Bug 14690 - Extended Attributes not in effect after downgrading from 4.11 to 4.10
Summary: Extended Attributes not in effect after downgrading from 4.11 to 4.10
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.11.17
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-15 07:55 UTC by Klaus Braun
Modified: 2021-04-15 09:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Braun 2021-04-15 07:55:26 UTC
Hello,

recently I had to switch from a samba server with 4.11.17 to SLES 12 SP 5
using now the onboard samba 4.10.

Not perfect, I know, but it seems to work OK, except one problem with extended files attributes on redirected homedrives.

These attributes like hidden on files like desktop.ini are obviously not interpreted correctly after the downgrade because the files are not hidden any more. Manually on the client side I can set the hidden attribute again and then it works like expected. 

Maybe this is not a bug in the narrow sense but I have to solve the proplem and therefore my question is, if there is any reason which explains this behavior anf if there is a smooth way to set the attributes back correctly on the server side without doing it manually on the client.

Thanks for support.

Regards

Klaus
Comment 1 Andrew Bartlett 2021-04-15 09:28:13 UTC
I'm very sorry, but I need to mark this as INVALID, because this is not a bug and not something we can practically work around.

Between Samba 4.10 and 4.11 a new more detailed xattr format was added and used in 

commit 3e005fb8f4fa670384ad23c3218ed8d9bfad8880
Author: Ralph Boehme <slow@samba.org>
Date:   Sun Jun 30 14:43:28 2019 +0200

    idl: add xattr_DosInfo4 to xattr_DosInfo in xattr.idl
    
    Adding itime, removing unused ea_size, size, alloc_size and change_time.
    
    Signed-off-by: Ralph Boehme <slow@samba.org>
    Reviewed-by: Jeremy Allison <jra@samba.org>


commit ebe7b8c58ca52005a68413e92d4148a17b1af671
Author: Ralph Boehme <slow@samba.org>
Date:   Tue Jun 25 14:26:10 2019 +0200

    s3:smbd: use xattr_DosInfo4 in set_ea_dos_attribute()
    
    Signed-off-by: Ralph Boehme <slow@samba.org>
    Reviewed-by: Jeremy Allison <jra@samba.org>

Samba 4.10 simply doesn't know about this format, so disregards it. 

Finally, the mailing list is the best place for support, or via your choice of commercial support provider if this is urgent or complex.

Sorry,

Andrew Bartlett