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

New ExternalParser doesn't work on Windows

Attach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.4.0
    • None
    • None

    Description

      Tilman Hausherr noted that the external2.ExternalParser uses "replaceAll" on a regex where the replacement is a file path does not work on Windows.  The replaceAll strips the file separators.  I admit that I cannot figure out why this is is happening.  I've tried a couple of combinations of backslashing etc, but nothing is working.  I even tried Pattern.quote() and that doesn't work on Windows. 

      If we back off to use "replace" with a string, everything seems to work.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            tallison Tim Allison
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment