Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14096

DistribPackageStore attempts to create filestore in read-only directory

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • Tests
    • None

    Description

      I see this in the logs when running with security manager:

      1645805 WARN  (SUITE-LoggingHandlerTest-seed#[DEADBEEF]-worker) [     ] o.a.s.f.DistribPackageStore Unable to create [/home/dweiss/work-ssd/lucene-solr/solr/core/build/resources/test/solr/.filestore] directory in SOLR_HOME [/home/dweiss/work-ssd/lucene-solr/solr/core/build/resources/test/solr].  Features requiring this directory may fail.
                => java.security.AccessControlException: access denied ("java.io.FilePermission" "/home/dweiss/work-ssd/lucene-solr/solr/core/build/resources/test/solr/.filestore" "write")
      	at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
      java.security.AccessControlException: access denied ("java.io.FilePermission" "/home/dweiss/work-ssd/lucene-solr/solr/core/build/resources/test/solr/.filestore" "write")
      	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[?:?]
      	at java.security.AccessController.checkPermission(AccessController.java:897) ~[?:?]
      	at java.lang.SecurityManager.checkPermission(SecurityManager.java:322) ~[?:?]
      	at java.lang.SecurityManager.checkWrite(SecurityManager.java:752) ~[?:?]
      	at java.io.File.mkdir(File.java:1323) ~[?:?]
      	at java.io.File.mkdirs(File.java:1355) ~[?:?]
      	at org.apache.solr.filestore.DistribPackageStore.ensurePackageStoreDir(DistribPackageStore.java:476) ~[main/:?]
      	at org.apache.solr.filestore.DistribPackageStore.<init>(DistribPackageStore.java:65) ~[main/:?]
      	at org.apache.solr.filestore.PackageStoreAPI.<init>(PackageStoreAPI.java:78) ~[main/:?]
      	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:619) ~[main/:?]
      

      Attachments

        Issue Links

          Activity

            People

              mdrob Mike Drob
              dweiss Dawid Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: