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)