From bb2db1de605900a8cafb402e85f0ef0b145c515a Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Mon, 16 Nov 2026 08:43:59 +0100 Subject: [PATCH] test(search): cover trailing NOT operator in invalid KQL patterns (#3982) * test(search): cover trailing NOT operator in invalid KQL patterns * skip downloadFile:321 for reva --- tests/acceptance/features/apiSearch1/search.feature | 10 +++++++--- .../coreApiWebdavOperations/downloadFile.feature | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/acceptance/features/apiSearch1/search.feature b/tests/acceptance/features/apiSearch1/search.feature index 0a48dd7dc5..6b3b6ae378 100644 --- a/tests/acceptance/features/apiSearch1/search.feature +++ b/tests/acceptance/features/apiSearch1/search.feature @@ -343,12 +343,16 @@ Feature: Search | name:"*der2" | subFOLDER2 | pattern 'name:""' (with quotes) | @issue-7812 @issue-8442 @issue-10329 - Scenario: try to search with invalid patterns + Scenario Outline: try to search with invalid patterns Given using spaces DAV path And user "Alice" has uploaded file with content "test file" to "testFile.txt" - When user "Alice" searches for 'AND mediatype:document' using the WebDAV API + When user "Alice" searches for "" using the WebDAV API Then the HTTP status code should be "400" - And the value of the item "/d:error/s:message" in the response should be "error: bad request: the operator 'AND' is missing an operand" + And the value of the item "/d:error/s:message" in the response should be "error: bad request: the operator '' is missing an operand" + Examples: + | pattern | operator | + | AND mediatype:document | AND | + | alice NOT | NOT | @issue-10329 Scenario Outline: search a file globally (in all spaces) diff --git a/tests/acceptance/features/coreApiWebdavOperations/downloadFile.feature b/tests/acceptance/features/coreApiWebdavOperations/downloadFile.feature index d1b751e01f..9a5e1ce93a 100644 --- a/tests/acceptance/features/coreApiWebdavOperations/downloadFile.feature +++ b/tests/acceptance/features/coreApiWebdavOperations/downloadFile.feature @@ -317,7 +317,7 @@ Feature: download file | spaces | "file #2.txt" | | spaces | "file ?2.pdf" | - @issue-2852 + @issue-2852 @skipOnReva Scenario Outline: download a file whose name contains a literal "%" via its oc:downloadURL Given using DAV path And user "Alice" has uploaded file with content "test file" to "firstword%20secondword.txt"