You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dawid Weiss (JIRA)" <ji...@apache.org> on 2015/07/16 17:04:04 UTC
[jira] [Comment Edited] (LUCENE-6644) Symlinked checkout folder
causes access denied exceptions
[ https://issues.apache.org/jira/browse/LUCENE-6644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14629857#comment-14629857 ]
Dawid Weiss edited comment on LUCENE-6644 at 7/16/15 3:03 PM:
--------------------------------------------------------------
Just FYI.
{code}
c:\Work\lucene\trunk [JUNCTION => d:\Work\lucene\trunk]
Then for input "C:\Work\lucene\.\trunk":
Path.normalize: C:\Work\lucene\trunk
Path.toAbsolutePath: C:\Work\lucene\.\trunk
Path.toRealPath: D:\Work\lucene\trunk
Path.toRealPath(NOFOLLOW_LINKS): C:\Work\lucene\trunk
File.getPath: C:\Work\lucene\.\trunk
File.getAbsolutePath: C:\Work\lucene\.\trunk
File.getCanonicalPath: C:\Work\lucene\trunk
{code}
was (Author: dweiss):
Just FYI.
{code}
c:\Work\lucene\trunk [JUNCTION => d:\Work\lucene\trunk]
Then:
Path.normalize: C:\Work\lucene\trunk
Path.toAbsolutePath: C:\Work\lucene\.\trunk
Path.toRealPath: D:\Work\lucene\trunk
Path.toRealPath(NOFOLLOW_LINKS): C:\Work\lucene\trunk
File.getPath: C:\Work\lucene\.\trunk
File.getAbsolutePath: C:\Work\lucene\.\trunk
File.getCanonicalPath: C:\Work\lucene\trunk
{code}
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org