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

Can't tell if a zip file is encrypted

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.14
    • Fix Version/s: 2.0, 1.15
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: