Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8303972

(zipfs) Make test/jdk/jdk/nio/zipfs/TestLocOffsetFromZip64EF.java independent of the zip command line

    XMLWordPrintable

Details

    • b11

    Backports

      Description

        The TestLocOffsetFromZip64EF test produces a 5GB ZIP file in order to verify parsing of Local header offsets from Zip64 extra fields.

        The test currently does this by calling out to the 'zip' command line. This has turned out to be brittle to changes in distros and the test is currently manual and problem-listed. See JDK-8301183 for details.

        Rather than calling out to 'zip', this test could benefit from using a small ZIP instead, containing a CEN with the necessary conditions to trigger JDK-8255380:

        - The CEN must have a 'INFO-ZIP extended timestamp' AND a Zip64 extended information field.
        - The extended timestamp must come first
        - The size, compressed size and loc offset fields of the CEN must be 0xFFFFFFFF

        This speeds up the test from 35s -> 3s, saves disk space and makes the test independent of OS/distro.

        Attachments

          Issue Links

            Activity

              People

                eirbjo Eirik Bjørsnøs
                eirbjo Eirik Bjørsnøs
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: