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

Zip artifact downloads missing a top-level directory

    • 2.276 and 2.263.3

      Upgrading from 2.263.1 to 2.263.2 has this undocumented change.
      Zip files of artifacts no longer have a top-level directory, but all the contents at the root.

      Examples:

      • $BUILD_URL/artifact/target/*zip*/target.zip
      • $BUILD_URL/artifact/dist/Release/*zip*/Release.zip
      • $BUILD_URL/Documentation/*zip*/Documentation.zip

      Possible regression of JENKINS-19947

          [JENKINS-64621] Zip artifact downloads missing a top-level directory

          James Howe created issue -
          James Howe made changes -
          Environment Original: Jenkins New: Jenkins LTS 2.263.2
          James Howe made changes -
          Description Original: Upgrading from 2.263.1 to 2.263.2 has this undocumented change.
          Zip files of artifacts no longer have a top-level directory, but all the contents at the root.

          Examples:
          - {{ $BUILD_URL/artifact/target/*zip*/target.zip }}
          - {{ $BUILD_URL/artifact/dist/Release/*zip*/Release.zip }}
          - {{ $BUILD_URL/Documentation/*zip*/Documentation.zip

          Possible regression of JENKINS-19947
          New: Upgrading from 2.263.1 to 2.263.2 has this undocumented change.
           Zip files of artifacts no longer have a top-level directory, but all the contents at the root.

          Examples:
           - {{$BUILD_URL/artifact/target/\*zip\*/target.zip}}
           - {{$BUILD_URL/artifact/dist/Release/\*zip\*/Release.zip}}
           - {{$BUILD_URL/Documentation/\*zip\*/Documentation.zip}}

          Possible regression of JENKINS-19947

          Mark Waite added a comment - - edited

          I've confirmed that there is a behavioral change from 2.263.1 to 2.263.2 as described. Thanks for the report.

          The test job that I created is stored in the lts-with-plugins branch of my docker-lfs repository.

          When that job is run with Jenkins 2.263.1, it passes and reports the zip archive contents are all under a directory named 'archive/src'.

          When that job is run with Jenkins 2.263.2, it is unstable and reports the zip archive contents are all under a directory named 'src' (no top level directory named 'archive').

          I assume the change is a side effect of one of the security fixes.

          Mark Waite added a comment - - edited I've confirmed that there is a behavioral change from 2.263.1 to 2.263.2 as described. Thanks for the report. The test job that I created is stored in the lts-with-plugins branch of my docker-lfs repository . When that job is run with Jenkins 2.263.1, it passes and reports the zip archive contents are all under a directory named 'archive/src'. When that job is run with Jenkins 2.263.2, it is unstable and reports the zip archive contents are all under a directory named 'src' (no top level directory named 'archive'). I assume the change is a side effect of one of the security fixes.
          Daniel Beck made changes -
          Labels New: regression

          Daniel Beck added a comment - - edited

          JENKINS-19947 was a similar problem a few years ago. We should really have tests for zip structure

           

          Daniel Beck added a comment - - edited JENKINS-19947 was a similar problem a few years ago. We should really have tests for zip structure  
          Baptiste Mathus made changes -
          Labels Original: regression New: lts-candidate regression
          Wadeck Follonier made changes -
          Labels Original: lts-candidate regression New: lts-candidate regression security-1452
          Wadeck Follonier made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Wadeck Follonier made changes -
          Assignee New: Wadeck Follonier [ wfollonier ]

            wfollonier Wadeck Follonier
            jameshowe James Howe
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: