Apache Solr open-source search software
Fix allowPath-related DistributedDebugComponentTest failure
Jason Gerlowskif61a21c05a54
diff --git a/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java b/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.javaindex 5384f9e88e5..0295bd6a5eb 100644--- a/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java+++ b/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java@@ -16,6 +16,8 @@*/package org.apache.solr.handler.component;+import static org.apache.solr.core.CoreContainer.ALLOW_PATHS_SYSPROP;+import java.io.IOException;import java.util.ArrayList;import java.util.Arrays;@@ -33,6 +35,7 @@ import org.apache.solr.client.solrj.response.QueryResponse;import org.apache.solr.common.SolrException;import org.apache.solr.common.SolrInputDocument;import org.apache.solr.common.params.ShardParams;+import org.apache.solr.common.util.EnvUtils;import org.apache.solr.common.util.NamedList;import org.apache.solr.response.SolrQueryResponse;import org.apache.solr.util.ExternalPaths;@@ -54,6 +57,8 @@ public class DistributedDebugComponentTest extends SolrTestCaseJ4 {@BeforeClasspublic static void createThings() throws Exception {systemSetPropertyEnableUrlAllowList(false);+ EnvUtils.setProperty(+ ALLOW_PATHS_SYSPROP, ExternalPaths.SERVER_HOME.toAbsolutePath().toString());solrTestRule.startSolr(createTempDir());solrTestRule