[
https://issues.apache.org/jira/browse/TIKA-4859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18109720#comment-18109720
]
Hudson commented on TIKA-4859:
------------------------------
SUCCESS: Integrated in Jenkins build Tika ยป tika-main-jdk17 #1598 (See
[https://ci-builds.apache.org/job/Tika/job/tika-main-jdk17/1598/])
TIKA-4859: Accept enum values in JSON config case-insensitively (#3097)
(github:
[https://github.com/apache/tika/commit/6d66308ff81e71a1e9cf62c7faaad69e6c22a8c7])
* (edit) docs/modules/ROOT/pages/migration-to-4x/migrating-tika-server-4x.adoc
* (add)
tika-serialization/src/test/java/org/apache/tika/config/loader/TikaObjectMapperFactoryTest.java
* (edit)
tika-serialization/src/main/java/org/apache/tika/config/loader/TikaObjectMapperFactory.java
* (edit) docs/modules/ROOT/pages/using-tika/server/index.adoc
* (edit) CHANGES.txt
> 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
> Components: config, documentation
> 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)