TSK-1382: Fix wildcard-search

This commit is contained in:
Joerg Heffner 2020-09-14 10:50:20 +02:00 committed by gitgoodjhe
parent 74dc3d8e57
commit a64f8e14f3
2 changed files with 2 additions and 2 deletions

View File

@ -467,7 +467,7 @@ public class TaskController extends AbstractPagingController {
taskQuery.wildcardSearchFieldsIn(createWildcardSearchFields(requestedWildcardSearchFields));
taskQuery.wildcardSearchValueLike(params.getFirst(WILDCARD_SEARCH_VALUE));
taskQuery.wildcardSearchValueLike(LIKE + params.getFirst(WILDCARD_SEARCH_VALUE) + LIKE);
params.remove(WILDCARD_SEARCH_FIELDS);
params.remove(WILDCARD_SEARCH_VALUE);
}

View File

@ -233,7 +233,7 @@ class TaskControllerIntTest {
ResponseEntity<TaskanaPagedModel<TaskSummaryRepresentationModel>> response =
TEMPLATE.exchange(
restHelper.toUrl(Mapping.URL_TASKS)
+ "?wildcard-search-value=%99%"
+ "?wildcard-search-value=99"
+ "&wildcard-search-fields=NAME,custom_3,CuStOM_4",
HttpMethod.GET,
new HttpEntity<String>(restHelper.getHeadersAdmin()),