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

Clarify that ZipInputStream does not access the CEN fields for a ZipEntry

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 20
    • core-libs

    Description

      When reading a zip file using ZipInputStream, POSIX permissions are ignored. In contrast, if the zip file is opened using ZipFile, the POSIX permissions are properly read.

      This contrasting behavior is not documented, which makes it hard for a developer to understand that using ZipInputStream will result in broken code, but using ZipFile will not.

      Attachments

        Issue Links

          Activity

            People

              lancea Lance Andersen
              ihse Magnus Ihse Bursie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: