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

TestFSDirectory fails on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9
    • 2.0.0
    • core/store
    • None
    • Windows XP Professional
      java version "1.4.2_08"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)

    Description

      "ant test" generates the following error consistently when run on a Windows machine even when run as user with Administrator privileges

      [junit] Testcase: testTmpDirIsPlainFile(org.apache.lucene.index.store.TestFSDirectory): Caused an ERROR
      [junit] Access is denied
      [junit] java.io.IOException: Access is denied
      [junit] at java.io.WinNTFileSystem.createFileExclusively(Native Method)
      [junit] at java.io.File.createNewFile(File.java:828)
      [junit] at org.apache.lucene.index.store.TestFSDirectory.testTmpDirIsPlainFile(TestFSDirectory.java:66)

      Attachments

        Activity

          People

            yseeley@gmail.com Yonik Seeley
            dcliman Dan Climan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: