Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-719

Persisting solr.xml through SolrJ does not handle relative pathes correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.3
    • 1.3
    • None
    • None

    Description

      It seems the code in CoreContainer.persistFile should begin with:

        /** 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));
      ...
      

      The issue today resides in calling file.getName() instead of file.getPath()

      Attachments

        1. SOLR-719.patch
          2 kB
          Shalin Shekhar Mangar

        Issue Links

          Activity

            People

              shalin Shalin Shekhar Mangar
              henrib Henri Biestro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: