]> git.ipfire.org Git - thirdparty/samba.git/commit
mdssvc: fix Spotlight queries restricted to subdirectories with NFD paths gitlab/master
authorPriyanka Soni <priysoni@redhat.com>
Thu, 4 Jun 2026 13:48:41 +0000 (19:18 +0530)
committerGünther Deschner <gd@samba.org>
Tue, 14 Jul 2026 14:22:46 +0000 (14:22 +0000)
commita834c71565cfb31f918de8c7f9a4b5b67b45fa04
treeb5c2d6a4382238012671d6cde763c4a5e7402529
parent9b3e4c2a104d351269d2063eb123481d1fda98a4
mdssvc: fix Spotlight queries restricted to subdirectories with NFD paths

Ensure directory scopes match by aligning Unicode normalization forms.
This fixes the case when the macOS client restricts the search to
a subdirectory. macOS clients transmit paths using NFD, which can
cause lookups to fail against NFC systems used by Samba and Elasticsearch.

This commit also includes a bug fix by Ralph Boehme <slow@samba.org> to resolve a
null-termination issue of the NFD converted path in add_filemeta().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15379

Signed-off-by: Priyanka Soni <priysoni@redhat.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Tue Jul 14 14:22:46 UTC 2026 on atb-devel-224
source3/rpc_server/mdssvc/mdssvc.c
source3/rpc_server/mdssvc/mdssvc_es.c