From c47a8f6e853ffd3d46c878e088b9c50cbb8d150f Mon Sep 17 00:00:00 2001 From: Julian Reschke Date: Fri, 6 Sep 2024 19:10:31 +0100 Subject: [PATCH] OAK-10341: TreeStore - fix config string parsing (which broke Windows path separators) --- .../oak/index/indexer/document/tree/store/StoreBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/tree/store/StoreBuilder.java b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/tree/store/StoreBuilder.java index 0aaada8d266..ba3b8322d4d 100644 --- a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/tree/store/StoreBuilder.java +++ b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/tree/store/StoreBuilder.java @@ -46,7 +46,7 @@ public static Store build(String config) throws IllegalArgumentException { if (config == null || config.isEmpty()) { return new MemoryStore(new Properties()); } - config = config.replace(' ', '\n'); + config = config.replace(' ', '\n').replace("\\", "\\\\"); Properties prop = new Properties(); try { prop.load(new StringReader(config));