Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8163

BaseDirectoryTestCase.testListAllIsSorted() can create Windows-incompatible names

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 7.3, 8.0
    • general/test
    • None
    • New

    Description

      This test generates a random set of strings for use as filenames, and then checks that the implementation under test returns them in sorted order from listAll().  However, on Windows there are a number of filenames that are disallowed (generally old-school handle names, eg con, prn, lpt1, etc), so if the test generates one of them, and is being run on Windows, then FileSystemExceptions can be thrown.

      Attachments

        1. LUCENE-8163.patch
          1 kB
          Alan Woodward

        Activity

          People

            romseygeek Alan Woodward
            romseygeek Alan Woodward
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: