FilePath broken since 1.357

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Alan Harder
            Reporter:
            emanuelez
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: