Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6494

FilePath broken since 1.357

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      Since Hudson 1.357 this function will fail:

      private String getFullPath(FilePath fp) {
      FilePath parent = fp;
      String path = "";
      try {
      while (parent.exists())

      { path = parent.getName() + File.separator + path; parent = parent.getParent(); path = File.separator + path; }

      } catch (IOException ex)

      { Logger.getLogger(UpdateMatrixProperty.class.getName()).log(Level.SEVERE, null, ex); } catch (InterruptedException ex) { Logger.getLogger(UpdateMatrixProperty.class.getName()).log(Level.SEVERE, null, ex); }

      return path;
      }
      with this error on the "parent = parent.getParent();" line:

      FATAL: String index out of range: -1

            mindless Alan Harder
            emanuelez emanuelez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: