This is an automated email from the ASF dual-hosted git repository.
tballison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/main by this push:
new 70257403a4 TIKA-4864 - fix windows (#3110)
70257403a4 is described below
commit 70257403a468b15360977f3929474a55716d3239
Author: Tim Allison <[email protected]>
AuthorDate: Mon Aug 31 15:38:39 2026 -0400
TIKA-4864 - fix windows (#3110)
---
.../test/java/org/apache/tika/async/cli/AsyncCliParserTest.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/tika-pipes/tika-async-cli/src/test/java/org/apache/tika/async/cli/AsyncCliParserTest.java
b/tika-pipes/tika-async-cli/src/test/java/org/apache/tika/async/cli/AsyncCliParserTest.java
index 44bd73c415..003973e060 100644
---
a/tika-pipes/tika-async-cli/src/test/java/org/apache/tika/async/cli/AsyncCliParserTest.java
+++
b/tika-pipes/tika-async-cli/src/test/java/org/apache/tika/async/cli/AsyncCliParserTest.java
@@ -199,8 +199,12 @@ public class AsyncCliParserTest {
JsonNode root = mapper.readTree(result.toFile());
assertTrue(root.has("plugin-roots"), "Merged config should have
plugin-roots");
String pluginRoots = root.get("plugin-roots").asText();
- assertTrue(pluginRoots.equals("plugins") ||
pluginRoots.endsWith("/plugins"),
- "plugin-roots should be 'plugins' or end with '/plugins', got:
" + pluginRoots);
+ // the default is an absolute path since TIKA-4864; compare the file
name,
+ // not the string, so the separator does not break the test on Windows
+ assertEquals("plugins", Path.of(pluginRoots).getFileName().toString(),
+ "plugin-roots should name a 'plugins' directory, got: " +
pluginRoots);
+ assertTrue(Path.of(pluginRoots).isAbsolute(),
+ "the default plugin-roots must be absolute (TIKA-4864), got: "
+ pluginRoots);
// Original config values should be preserved
assertTrue(root.has("pipes"));