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

Tika CLI shouldn't log with System.out.println

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.23
    • Component/s: None
    • Labels:
      None

      Description

      Running Tika-app on the command line, I expect to get back the output on STDOUT to be a single JSON response, with logging going to STDERR, which is what happens except if you have a embedded image then there is what I think is a stray System.out.println:

      https://github.com/apache/tika/blob/72f4f9bd999569797360b16f92b02ea92216ac22/tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java#L1054

      This causes my output to be a mix of regular text and JSON! See below example.

      Extracting 'image0.tif' (image/tiff) to ./image0.tif
      [

      { "Author": "Federal Reserve Board", "Content-Length": "345888" }

      ]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tallison Tim Allison
                Reporter:
                epugh David Eric Pugh
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: