Skip to content

Apache Lucene open-source search software

best effort support this reading out of sandbox

Robert Muir9d49ce79e7ad
diff --git a/lucene/tools/junit4/tests.policy b/lucene/tools/junit4/tests.policy
index fd9ab54d211..d51e6f8a106 100644
--- a/lucene/tools/junit4/tests.policy
+++ b/lucene/tools/junit4/tests.policy
@@ -28,6 +28,10 @@ grant {
// should be enclosed within common.dir, but just in case:
permission java.io.FilePermission "${junit4.childvm.cwd}", "read";
+ // jenkins wants to read outside its sandbox, to use a special linedocs file.
+ // this is best effort and not really supported.
+ permission java.io.FilePermission "/home/jenkins/lucene-data/enwiki.random.lines.txt", "read";
+
// write only to sandbox
permission java.io.FilePermission "${junit4.childvm.cwd}${/}temp", "read,write,delete";
permission java.io.FilePermission "${junit4.childvm.cwd}${/}temp${/}-", "read,write,delete";