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

Swallows security exception and returns null

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.18, 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      We had what looked like a Tika error when we ran our tests on Java 10. It turns out that this was caused by a change in Java 10 to make ZipFile required accessDeclaredMembers, a permission that we don't grant ourselves. Tika made this very difficult to debug by catching `RuntimeException` and returning `null`. Since `SecurityException` extends `RuntimeException` we lost all debugging information that might have made this problem simple to track down. Tika should probably let `SecurityException` bubble up.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nik9000 Nik Everett

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment