You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Dominik Schmidt (Jira)" <ji...@apache.org> on 2026/08/29 18:59:00 UTC

[jira] [Created] (TIKA-4859) Enum values in JSON config are case-sensitive; the server docs use no_ocr

Dominik Schmidt created TIKA-4859:
-------------------------------------

             Summary:  Enum values in JSON config are case-sensitive; the server docs use no_ocr
                 Key: TIKA-4859
                 URL: https://issues.apache.org/jira/browse/TIKA-4859
             Project: Tika
          Issue Type: Bug
            Reporter: Dominik Schmidt


{"pdf-parser": {"ocr": {"strategy": "no_ocr"}}} is the example in using-tika/server/index.adoc, but OcrConfig.Strategy is deserialized by Enum.valueOf, so the request answers 422; NO_OCR works. Other enums in the config (imageStrategy, suffixStrategy, ...) behave the same. Either make enum deserialization case-insensitive (the UnpackConfig enums already ship a parse(String) that upper-cases) or fix the documentation examples.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)