Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2300

Can't tell if a zip file is encrypted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.14
    • 1.15, 2.0.0
    • None
    • None

    Description

      When Tika processes a zip file that is protected with a password, it will return the list of file names within the zip but no indication (as an exception or in metadata) that the file is encrypted.

      From stepping through the code, I can see that the information needed to determine whether the archive is encrypted is available inside ZipArchiveEntry#getGeneralPurposeBit#usesEncryption, but needs to be relayed back to PackageParser somehow

      Attachments

        1. encrypted_file.zip
          9 kB
          Aeham Abushwashi
        2. TIKA-2300.patch
          5 kB
          Aeham Abushwashi

        Activity

          People

            tallison Tim Allison
            aeham.abushwashi Aeham Abushwashi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: