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

TestFSDirectory fails on Windows

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0.0
    • Component/s: core/store
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: