[xwiki/xwiki-platform] 3b9ff9: XWIKI-24574: REST keyword search does not de-dupli...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 3b9ff959ebdc64542f47f1b7d5d6cceb6742a13f https://github.com/xwiki/xwiki-platform/commit/3b9ff959ebdc64542f47f1b7d5d6c... Author: Vincent Massol <[email protected]> Date: 2026-07-17 (Fri, 17 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/BaseSearchResult.java A xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/test/java/org/xwiki/rest/internal/resources/BaseSearchResultTest.java Log Message: ----------- XWIKI-24574: REST keyword search does not de-duplicate repeated "scope" query parameters BaseSearchResult.parseSearchScopeStrings guarded on "!searchScopes.contains(searchScopeString)", comparing a String against a List<KeywordSearchScope>, so the check was always true and duplicate scopes in the scope query parameter were never de-duplicated. Move the guard onto the parsed KeywordSearchScope value instead, and add unit tests covering distinct scopes, de-duplication, case-insensitivity, and the null/unknown/ empty-input default-to-CONTENT behavior. Raise the module's JaCoCo instruction ratio from 0.36 to 0.37 to lock in the new coverage. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications