buda-base / lucene-bo

Lucene analyzer for Tibetan
Apache License 2.0
12 stars 3 forks source link

bypassing security manager in opensearch #44

Open eroux opened 7 months ago

eroux commented 7 months ago

Current message is

java.security.AccessControlException: access denied ("java.io.FilePermission" "src/main/resources/bo-stopwords.txt" "read")
    at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:488) ~[?:?]
    at java.base/java.security.AccessController.checkPermission(AccessController.java:1071) ~[?:?]
    at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:411) ~[?:?]
    at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:742) ~[?:?]
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:141) ~[?:?]
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:106) ~[?:?]
    at io.bdrc.lucene.bo.CommonHelpers.getResourceOrFile(CommonHelpers.java:28) ~[?:?]