[ 
https://issues.apache.org/jira/browse/TIKA-2816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16743736#comment-16743736
 ] 

Anssi Törmä commented on TIKA-2816:
-----------------------------------

Thanks for the fix!

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

Reply via email to