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

Accidentally swallowing UnsupportedZipFeatureException in rare cases

    XMLWordPrintableJSON

    Details

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

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

              Dates

              • Created:
                Updated:
                Resolved: