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

Accidentally swallowing UnsupportedZipFeatureException in rare cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.15, 2.0.0
    • parser
    • None

    Description

      It looks from this comment in the PackageParser that we mean to re-throw this exception, but we aren't.

      catch (UnsupportedZipFeatureException zfe) {
                  // If it's an encrypted document of unknown password, report as such
                  if (zfe.getFeature() == Feature.ENCRYPTION) {
                      throw new EncryptedDocumentException(zfe);
                  }
                  // Otherwise fall through to raise the exception as normal
              }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tallison Tim Allison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: