Persisting solr.xml through SolrJ does not handle relative pathes correctly
---------------------------------------------------------------------------
Key: SOLR-719
URL: https://issues.apache.org/jira/browse/SOLR-719
Project: Solr
Issue Type: Bug
Affects Versions: 1.4
Reporter: Henri Biestro
Priority: Trivial
Fix For: 1.4
It seems the code in CoreContainer.persistFile should begin with:
{code}
/** Persists the cores config file in a user provided file. */
public void persistFile(File file) {
if (file != null && !file.isAbsolute())
file = new File(configFile.getParentFile(), file.getPath());
log.info("Persisting cores config to " + (file==null ? configFile : file));
...
{code}
The issue today resides in calling file.getName() instead of file.getPath()
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.