[ 
https://issues.apache.org/jira/browse/LUCENE-6644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dawid Weiss resolved LUCENE-6644.
---------------------------------
    Resolution: Won't Fix

The security manager would have to figure out which symlinks point to which 
actual locations, probably not worth the effort.

> Symlinked checkout folder causes access denied exceptions
> ---------------------------------------------------------
>
>                 Key: LUCENE-6644
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6644
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: general/test
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>            Priority: Minor
>
> 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.
> {code}
>    [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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to