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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.10
    • Component/s: cli
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: