mdssvc: reduce pagesize to 50
authorRalph Boehme <slow@samba.org>
Thu, 20 Apr 2023 15:27:20 +0000 (17:27 +0200)
committerJule Anger <janger@samba.org>
Mon, 31 Jul 2023 08:05:14 +0000 (08:05 +0000)
commit590c91640bfec9909a543eafeef8f52d5a42a89e
treec6e50a1a7ad615b3c7e784409cdf75880f96003d
parent3036f3cb96f1923949c7c73d2d3e9273539d0978
mdssvc: reduce pagesize to 50

Lastest macOS queries additional file metadata per search result, which causes
the mashalled paged result set including metadata to exceed the 64 KB result
fragment buffer.

Lacking fragementation support in mdssvc (it's supported by the protocol), for
now just reduce the maximum number of results per search page.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 724a0518c901589fe1171d94648391832e056f4d)
python/samba/tests/blackbox/mdsearch.py
python/samba/tests/dcerpc/mdssvc.py
source3/rpc_server/mdssvc/mdssvc.h