Use Path.startsWith() to cover a corner case when unzipping

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

XMLWordPrintable

    • 2.304 and 2.303.1

      The current check (JENKINS-56931) using String.startsWith() fails to detect a corner case when zip entries have the same path prefix with the target location because the value returned by File.getCanonicalPath() doesn't end with a slash.
      eg: /foobar is a subdirectory of /foo

            Assignee:
            Trung
            Reporter:
            Trung
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: