You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ti...@apache.org on 2021/07/16 17:59:59 UTC
[tika] branch main updated: TIKA-3484: escape second parameter so
that it works on Windows 10
This is an automated email from the ASF dual-hosted git repository.
tilman 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 29ec5a0 TIKA-3484: escape second parameter so that it works on Windows 10
29ec5a0 is described below
commit 29ec5a0c01c21977670f3d3224cf5c4e618ef32f
Author: THausherr <ti...@snafu.de>
AuthorDate: Fri Jul 16 19:59:25 2021 +0200
TIKA-3484: escape second parameter so that it works on Windows 10
---
.../apache/tika/pipes/opensearch/tests/TikaPipesOpenSearchTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tika-integration-tests/tika-pipes-opensearch-integration-tests/src/test/java/org/apache/tika/pipes/opensearch/tests/TikaPipesOpenSearchTest.java b/tika-integration-tests/tika-pipes-opensearch-integration-tests/src/test/java/org/apache/tika/pipes/opensearch/tests/TikaPipesOpenSearchTest.java
index 0081349..63d3254 100644
--- a/tika-integration-tests/tika-pipes-opensearch-integration-tests/src/test/java/org/apache/tika/pipes/opensearch/tests/TikaPipesOpenSearchTest.java
+++ b/tika-integration-tests/tika-pipes-opensearch-integration-tests/src/test/java/org/apache/tika/pipes/opensearch/tests/TikaPipesOpenSearchTest.java
@@ -22,6 +22,7 @@ import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
+import java.util.regex.Matcher;
import org.apache.commons.io.IOUtils;
import org.jetbrains.annotations.NotNull;
@@ -138,7 +139,8 @@ public class TikaPipesOpenSearchTest {
tikaConfigTemplateXml.replace("{TIKA_CONFIG}", tikaConfigFile.getAbsolutePath())
.replace("{ATTACHMENT_STRATEGY}", attachmentStrategy.toString())
.replace("{LOG4J_PROPERTIES_FILE}", log4jPropFile.getAbsolutePath())
- .replaceAll("\\{PATH_TO_DOCS\\}", testFileFolder.getAbsolutePath());
+ .replaceAll("\\{PATH_TO_DOCS\\}",
+ Matcher.quoteReplacement(testFileFolder.getAbsolutePath()));
res = res.replace("{OPENSEARCH_CONNECTION}", openSearchEndpoint);