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

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

    XMLWordPrintable

Details

    • 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

          trungpa Trung created issue -
          danielbeck Daniel Beck made changes -
          Field Original Value New Value
          Labels lts-candidate
          danielbeck Daniel Beck made changes -
          Released As 2.304
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
          danielbeck Daniel Beck made changes -
          Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
          basil Basil Crow made changes -
          Labels lts-candidate 2.303-fixed lts-candidate
          markewaite Mark Waite made changes -
          Labels 2.303-fixed lts-candidate 2.303-fixed
          markewaite Mark Waite made changes -
          Released As 2.304 2.304 and 2.303.1
          markewaite Mark Waite made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: