You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2019/01/15 18:41:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16743289#comment-16743289 ] 

Hudson commented on TIKA-2816:
------------------------------

UNSTABLE: Integrated in Jenkins build tika-2.x-windows #375 (See [https://builds.apache.org/job/tika-2.x-windows/375/])
TIKA-2816 -- allow OCR parameter header setting in tika-server to (tallison: rev badad88737578ffd2d1f87b28bdc3502b9b4076c)
* (edit) tika-server/src/test/java/org/apache/tika/server/TikaResourceTest.java
* (edit) tika-server/src/main/java/org/apache/tika/server/resource/TikaResource.java


> 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)