[
https://issues.apache.org/jira/browse/TIKA-4859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18109707#comment-18109707
]
ASF GitHub Bot commented on TIKA-4859:
--------------------------------------
THausherr merged PR #3097:
URL: https://github.com/apache/tika/pull/3097
> 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
> Priority: Minor
> Fix For: 4.1.0
>
>
> {"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)