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

tika-batch's FileListCrawler truncates the first character of the fileList if the root is e.g. X:

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: None
    • Component/s: batch
    • Labels:

      Description

      The FileListCrawler takes a root directory and a list of relative file paths and "crawls" that list as if it were a directory crawler. If the root is specified as, e.g. "X:" on a Windows system, the call to substring on root's absolute path and the subtraction of one character is incorrect.

      With a root of X: and a relative file of "dir1/dir2/file.doc", the output file is: "X:/ir/dir2/file.doc.txt"

      Let's get rid of the substring calculations and move to Java 7!

      See TIKA-1747.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tallison Tim Allison

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment