From: Ralph Boehme Date: Wed, 15 Oct 2025 13:01:16 +0000 (+0200) Subject: mdssvc: add support for parsing date ranges X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c00de32585bf47ec4753f966fe9ac4dd2fb8f4e7;p=thirdparty%2Fsamba.git mdssvc: add support for parsing date ranges Example: InRange(kMDItemContentCreationDate,$time.iso(2024-12-31T23:00:00Z),$time.iso(2025-12-31T23:00:00Z)) BUG: https://bugzilla.samba.org/show_bug.cgi?id=15930 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Mon Oct 20 10:59:03 UTC 2025 on atb-devel-224 --- diff --git a/selftest/knownfail.d/samba.unittests.mdsparser_es b/selftest/knownfail.d/samba.unittests.mdsparser_es deleted file mode 100644 index b5d7bc84c1e..00000000000 --- a/selftest/knownfail.d/samba.unittests.mdsparser_es +++ /dev/null @@ -1 +0,0 @@ -^samba.unittests.mdsparser_es.*test_mdsparser_es\(none\) diff --git a/source3/rpc_server/mdssvc/es_parser.y b/source3/rpc_server/mdssvc/es_parser.y index cea2ce8eb0c..1f1c02ba1a5 100644 --- a/source3/rpc_server/mdssvc/es_parser.y +++ b/source3/rpc_server/mdssvc/es_parser.y @@ -219,6 +219,13 @@ FUNC_INRANGE OBRACE attribute COMMA WORD COMMA WORD CBRACE { } else { $$ = map_expr($3, '~', $5, $7); } +} +| FUNC_INRANGE OBRACE attribute COMMA isodate COMMA isodate CBRACE { + if ($3 == NULL) { + $$ = NULL; + } else { + $$ = map_expr($3, '~', $5, $7); + } }; attribute: