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

zkTransfer normalizes destination path incorrectly if source is a windows directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.6, 7.0
    • None
    • None

    Description

      While normalizing dest it is looking only for '/' in source path but this will not work for windows style delimiter.

      /lucene-solr/solr/solrj/src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.java

      private static String normalizeDest(String srcName, String dstName) {
      if (dstName.endsWith("/")) { // Dest is a directory.
      int pos = srcName.lastIndexOf("/");
      if (pos < 0) {

      Attachments

        1. SOLR-10387.patch
          1 kB
          Erick Erickson
        2. SOLR-10387.patch
          5 kB
          gopikannan venugopalsamy
        3. SOLR-10387.patch
          5 kB
          Erick Erickson
        4. SOLR-10387.patch
          7 kB
          Erick Erickson
        5. SOLR-10387.patch
          8 kB
          Erick Erickson

        Issue Links

          Activity

            People

              erickerickson Erick Erickson
              gopikannan gopikannan venugopalsamy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: