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

TarArchiver.visit produces corrupt archive when file size changes during write

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      TarArchiver.visit assumes that the input stream from a file is of the exact length as .length() reported when it started. This may not be true for things like log files that are frequently appended to. That can cause corruption of artifact archiving, backups, etc.

          [JENKINS-20187] TarArchiver.visit produces corrupt archive when file size changes during write

          Jesse Glick created issue -
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-21426 [ JENKINS-21426 ]

          Daniel Beck added a comment -

          Jesse: Isn't this a duplicate of JENKINS-7695?

          Daniel Beck added a comment - Jesse: Isn't this a duplicate of JENKINS-7695 ?

          Jesse Glick added a comment -

          Yes, though this one has a more useful summary.

          Jesse Glick added a comment - Yes, though this one has a more useful summary.
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-7695 [ JENKINS-7695 ]

          Jesse Glick added a comment -

          And link to JENKINS-21426, which is related and should probably be fixed in the same commit.

          Jesse Glick added a comment - And link to JENKINS-21426 , which is related and should probably be fixed in the same commit.
          Alvaro Lobato made changes -
          Assignee New: Alvaro Lobato [ alobato ]
          Alvaro Lobato made changes -
          Remote Link New: This issue links to "PR-2419 (Web Link)" [ 14529 ]

          Alvaro Lobato added a comment -

          Created PR-2419 with a proposed fix.

          Alvaro Lobato added a comment - Created PR-2419 with a proposed fix.
          Alvaro Lobato made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

            alobato Alvaro Lobato
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: