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

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

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      2.304 and 2.303.1

      Description

      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

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            trungpa Trung
            Reporter:
            trungpa Trung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: