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

TikaPipesOpenSearchTest: java.lang.IllegalArgumentException: "basePath" directory does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • tika-pipes
    • None

    Description

      I've been trying to build "main" on windows 10, and got this:

      java.lang.RuntimeException: java.lang.IllegalArgumentException: "basePath" directory does not exist: XXXXX\YYYYYYJavatika-maintikatika-integration-teststika-pipes-opensearch-integration-teststargettest-files
      at org.apache.tika.pipes.opensearch.tests.TikaPipesOpenSearchTest.runPipes(TikaPipesOpenSearchTest.java:129)
      at org.apache.tika.pipes.opensearch.tests.TikaPipesOpenSearchTest.testFSToOpenSearch(TikaPipesOpenSearchTest.java:96)
      Caused by: java.lang.IllegalArgumentException: "basePath" directory does not exist: XXXXX\YYYYYYJavatika-maintikatika-integration-teststika-pipes-opensearch-integration-teststargettest-files

      The cause is that the file tika\tika-integration-tests\tika-pipes-opensearch-integration-tests\target\ta-opensearch.xml have two basepaths that doesn't exist. It contains my path but without any "/" or "\".

      The root cause is that .replaceAll needs some escaping in the second parameter.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: