You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2019/01/15 18:11:00 UTC
[jira] [Resolved] (TIKA-2816) Error when sending request to /tika
with header X-Tika-OCRMinFileSizeToOcr
[ https://issues.apache.org/jira/browse/TIKA-2816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Allison resolved TIKA-2816.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.21
2.0.0
Sorry about that, and thank you!
> Error when sending request to /tika with header X-Tika-OCRMinFileSizeToOcr
> --------------------------------------------------------------------------
>
> Key: TIKA-2816
> URL: https://issues.apache.org/jira/browse/TIKA-2816
> Project: Tika
> Issue Type: Bug
> Components: server
> Affects Versions: 1.19, 1.20, 1.19.1
> Environment: Tika server 1.20 running in latest Ubuntu in a Docker container (https://github.com/LogicalSpark/docker-tikaserver).
> Reporter: Anssi Törmä
> Assignee: Tim Allison
> Priority: Major
> Fix For: 2.0.0, 1.21
>
>
> I'm getting an error (status 500) when sending a request to PUT /tika with X-Tika-OCRMinFileSizeToOcr. Console logs "WARN javax.ws.rs.WebApplicationException: X-Tika-OCRMinFileSizeToOcr is an invalid X-Tika-OCR header". This was is working in version 1.17.
> I'm guessing this is because org.apache.tika.server.resource.TikaResource.java does not parse long valued setters. The type of field minFileSizeToOcr in org.apache.tika.parser.ocr.TesseractOCRConfig.java was changed from int to long in version 1.19.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)