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

zkTransfer normalizes destination path incorrectly if source is a windows directory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: