[ 
https://issues.apache.org/jira/browse/LUCENE-5650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001202#comment-14001202
 ] 

Dawid Weiss commented on LUCENE-5650:
-------------------------------------

Are you sure you don't have any exclusion properties in your default setup? 
Because I still see a number of failures. I just fixed two tests in map-reduce, 
but there's a number of other failures left:
{code}
[22:26:32.432] ERROR   0.00s J3 | TestICUCollationFieldOptions (suite) <<<
   > Throwable #1: org.apache.solr.common.SolrException: SolrCore 'collection1' 
is not available due to init failure: access denied ("java.io.FilePermission" 
"analysis-extras\solr\collection1\conf" "write")

[22:26:32.459] ERROR   0.00s J2 | TestFoldingMultitermExtrasQuery (suite) <<<
   > Throwable #1: org.apache.solr.common.SolrException: SolrCore 'collection1' 
is not available due to init failure: access denied ("java.io.FilePermission" 
"analysis-extras\solr\collection1\conf" "write")

[22:26:48.767] ERROR   0.00s J1 | CarrotClusteringEngineTest (suite) <<<
   > Throwable #1: org.apache.solr.common.SolrException: SolrCore 'collection1' 
is not available due to init failure: access denied ("java.io.FilePermission" 
"clustering\solr\collection1\conf" "write")

[22:27:52.483] FAILURE 0.04s | 
TestDocBuilder.testDeltaImportNoRows_MustNotCommit <<<
(caused by, in the logs)
  2> Caused by: java.security.AccessControlException: access denied 
("java.io.FilePermission" ".\dataimport.properties" "write")

[22:31:24.108] ERROR   0.36s | 
VelocityResponseWriterTest.testSolrResourceLoaderTemplate <<<
   > Throwable #1: java.lang.RuntimeException: 
org.apache.velocity.exception.VelocityException: Error initializing log: Failed 
to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with 
the current runtime configuration.
...
   > Caused by: java.security.AccessControlException: access denied 
("java.io.FilePermission" "velocity.log" "write")
[22:26:07.003] ERROR   0.05s J0 | TestLBHttpSolrServer.testReliability <<<
   > Throwable #1: java.security.AccessControlException: access denied 
("java.io.FilePermission" 
"org.apache.solr.client.solrj.TestLBHttpSolrServer$SolrInstance-1400444767005\solr\collection10"
 "write")
{code}

These are the few I quickly noticed. Did they pass for you? My master seed was 
324BDB00052353EE



> createTempDir and associated functions no longer create java.io.tmpdir
> ----------------------------------------------------------------------
>
>                 Key: LUCENE-5650
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5650
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: general/test
>            Reporter: Ryan Ernst
>            Assignee: Dawid Weiss
>            Priority: Minor
>             Fix For: 4.9, 5.0
>
>         Attachments: LUCENE-5650.patch, LUCENE-5650.patch, LUCENE-5650.patch, 
> LUCENE-5650.patch
>
>
> The recent refactoring to all the create temp file/dir functions (which is 
> great!) has a minor regression from what existed before.  With the old 
> {{LuceneTestCase.TEMP_DIR}}, the directory was created if it did not exist.  
> So, if you set {{java.io.tmpdir}} to {{"./temp"}}, then it would create that 
> dir within the per jvm working dir.  However, {{getBaseTempDirForClass()}} 
> now does asserts that check the dir exists, is a dir, and is writeable.
> Lucene uses {{"."}} as {{java.io.tmpdir}}.  Then in the test security 
> manager, the per jvm cwd has read/write/execute permissions.  However, this 
> allows tests to write to their cwd, which I'm trying to protect against (by 
> setting cwd to read/execute in my test security manager).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to