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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: