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

BaseDirectoryTestCase.testListAllIsSorted() can create Windows-incompatible names

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3, 8.0
    • Component/s: general/test
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: