You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2020/10/18 16:32:37 UTC

[lucene-solr] branch master updated: LUCENE-9576: give solr back its getFileStoreAttributes permission

This is an automated email from the ASF dual-hosted git repository.

rmuir pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c42cbc  LUCENE-9576: give solr back its getFileStoreAttributes permission
4c42cbc is described below

commit 4c42cbc5c9a2788027997b1c05fca1cbe65e28fe
Author: Robert Muir <rm...@apache.org>
AuthorDate: Sun Oct 18 12:30:47 2020 -0400

    LUCENE-9576: give solr back its getFileStoreAttributes permission
    
    Solr apparently needs this for its IndexFetcher.
---
 gradle/testing/randomization/policies/solr-tests.policy | 2 ++
 solr/server/etc/security.policy                         | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/gradle/testing/randomization/policies/solr-tests.policy b/gradle/testing/randomization/policies/solr-tests.policy
index 6b8b89f..12c44a8 100644
--- a/gradle/testing/randomization/policies/solr-tests.policy
+++ b/gradle/testing/randomization/policies/solr-tests.policy
@@ -67,6 +67,8 @@ grant {
   permission java.lang.RuntimePermission "getStackTrace";
   // needed for mock filesystems in tests
   permission java.lang.RuntimePermission "fileSystemProvider";
+  // needed by IndexFetcher
+  permission java.lang.RuntimePermission "getFileStoreAttributes";
   // analyzers/uima: needed by lucene expressions' JavascriptCompiler
   permission java.lang.RuntimePermission "createClassLoader";
   // needed to test unmap hack on platforms that support it
diff --git a/solr/server/etc/security.policy b/solr/server/etc/security.policy
index 4a6b30f..51c6d3b 100644
--- a/solr/server/etc/security.policy
+++ b/solr/server/etc/security.policy
@@ -73,6 +73,8 @@ grant {
   permission java.lang.RuntimePermission "getStackTrace";
   // needed for mock filesystems in tests
   permission java.lang.RuntimePermission "fileSystemProvider";
+  // needed by IndexFetcher
+  permission java.lang.RuntimePermission "getFileStoreAttributes";
   // analyzers/uima: needed by lucene expressions' JavascriptCompiler
   permission java.lang.RuntimePermission "createClassLoader";
   // needed to test unmap hack on platforms that support it