[ https://issues.apache.org/jira/browse/SOLR-16553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17637701#comment-17637701 ]
Henrik commented on SOLR-16553: ------------------------------- I'm currently using this workaround in my tests: {code:java} // Workaround for https://issues.apache.org/jira/browse/SOLR-16553 System.setProperty(SolrDispatchFilter.SOLR_INSTALL_DIR_ATTRIBUTE, Files.createTempDirectory("foo").toFile().getAbsolutePath()) {code} > SolrTestCaseJ4 solr.install.dir property not initialized > --------------------------------------------------------- > > Key: SOLR-16553 > URL: https://issues.apache.org/jira/browse/SOLR-16553 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: SolrJ, Tests > Affects Versions: 9.1 > Reporter: Bernd Wahlen > Assignee: Kevin Risden > Priority: Minor > Time Spent: 10m > Remaining Estimate: 0h > > i tried to upgrade solr-solrj + solr-test-framework from 9.0 -> 9.1 > i have some Testcases extending SolrTestCaseJ4 and initialized like this. > With 9.1 they fail with solr.install.dir property not initialized (i fixed > this adding the system property to every test class like below). > Is this change intended? (there is no solr installation, just the test > framework running on temporary dir@build server). > {code:java} > @BeforeClass > public static void beforeClass() throws Exception { > System.setProperty("solr.install.dir", "./"); //inserted to > keep running with solrj-9.1 > initCore("solrconfig.xml", "schema.xml", "./", "city_v2"); > lrf.qtype = "/select"; > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org