Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2816

Error when sending request to /tika with header X-Tika-OCRMinFileSizeToOcr

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              tallison Tim Allison
              Reporter:
              atorma Anssi Törmä
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: