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

Symlinked checkout folder causes access denied exceptions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: general/test
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Had to make some space on my drive and moved certain repositories to a different volume (via windows junction). This causes exceptions from the security manager if the tests are run from the original location (which resolves to a different path).

      Don't have any thoughts about this (whether it should be fixed or how), just wanted to make note it's the case.

         [junit4]    > Throwable #1: java.security.AccessControlException: access denied ("java.io.FilePermission" "D:\Work\lu
      cene\trunk\solr\build\solr-solrj\test\J1\temp\solr.common.util.TestJavaBinCodec_25A5FF5CB51DB333-001" "write")
         [junit4]    >        at __randomizedtesting.SeedInfo.seed([25A5FF5CB51DB333]:0)
         [junit4]    >        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)
         [junit4]    >        at java.security.AccessController.checkPermission(AccessController.java:884)
         [junit4]    >        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
         [junit4]    >        at java.lang.SecurityManager.checkWrite(SecurityManager.java:979)
         [junit4]    >        at sun.nio.fs.WindowsPath.checkWrite(WindowsPath.java:799)
         [junit4]    >        at sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:491)
         [junit4]    >        at org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.
      java:133)
         [junit4]    >        at org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.
      java:133)
         [junit4]    >        at org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.
      java:133)
         [junit4]    >        at org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.
      java:133)
         [junit4]    >        at java.nio.file.Files.createDirectory(Files.java:674)
         [junit4]    >        at org.apache.lucene.util.LuceneTestCase.createTempDir(LuceneTestCase.java:2584)
         [junit4]    >        at org.apache.solr.SolrTestCaseJ4.beforeClass(SolrTestCaseJ4.java:201)
         [junit4]    >        at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Assignee:
              dweiss Dawid Weiss
              Reporter:
              dweiss Dawid Weiss
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: