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

Tika network server does not print anything in response to, for example, Word documents

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.10
    • cli
    • None
    • Debian Linux Sid

    Description

      When trying to use Tika Server (java -jar tika-app-0.9.jar -t -p PORT) to parse M$Word DOC/DOCX files, tika server reads the file and then doesn't do anything more, it simply hangs, probably blocked on a socket read. This does not happend with, for example, HTML documents. I don't know the mechanics of this bug, but the following change definitely fixes the issue:

      Change
      type.process(socket.getInputStream(), output);
      to
      type.process(new CloseShieldInputStream(socket.getInputStream()), output);

      Attachments

        1. tika-709.diff
          2 kB
          Vitaliy Filippov

        Activity

          People

            jukkaz Jukka Zitting
            vitalif Vitaliy Filippov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: