From 5b792be218f0987780067fb2498e254ea9ad320c Mon Sep 17 00:00:00 2001 From: Shinsuke Sugaya Date: Fri, 21 Aug 2026 08:06:39 +0900 Subject: [PATCH 1/2] chore: bump parent version to 15.8.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a4968ed..2009bf4 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ org.codelibs.fess fess-parent - 15.8.0-SNAPSHOT + 15.8.0 From 934c64b9cbf4b9b81fc27089923c3a3991c51a72 Mon Sep 17 00:00:00 2001 From: Shinsuke Sugaya Date: Fri, 21 Aug 2026 08:23:35 +0900 Subject: [PATCH 2/2] test: answer the search-role prefixes SystemHelper now reads fess 15.8.0 added a search-role prefix check to SystemHelper#init(), which reads role.search.user.prefix, role.search.group.prefix, role.search.role.prefix and role.search.denied.prefix. The stub FessConfig in CustomSystemHelperTest did not answer those getters, so they fell through to an uninitialized SimpleImpl and the DI container failed to initialize with an NPE from ObjectiveConfig#get. Give the stub the values fess_config.properties ships, the same way Fess's own SystemHelperTest builds a prefix config. --- .../helper/CustomSystemHelperTest.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/test/java/org/codelibs/fess/webapp/example/helper/CustomSystemHelperTest.java b/src/test/java/org/codelibs/fess/webapp/example/helper/CustomSystemHelperTest.java index 1e07d5e..bbc6b24 100644 --- a/src/test/java/org/codelibs/fess/webapp/example/helper/CustomSystemHelperTest.java +++ b/src/test/java/org/codelibs/fess/webapp/example/helper/CustomSystemHelperTest.java @@ -70,6 +70,29 @@ public String getPathEncoding() { public String[] getSupportedLanguagesAsArray() { return new String[] { "ja" }; } + + // SystemHelper#init() validates the four search-role prefixes, and a + // SimpleImpl built here has no properties behind it to read them from. + // Return the values fess_config.properties ships so the check passes. + @Override + public String getRoleSearchUserPrefix() { + return "1"; + } + + @Override + public String getRoleSearchGroupPrefix() { + return "2"; + } + + @Override + public String getRoleSearchRolePrefix() { + return "R"; + } + + @Override + public String getRoleSearchDeniedPrefix() { + return "D"; + } }); super.setUp(testInfo); }