Hi!

When the user or sysadmin changes the default temporary directory on
Windows by setting the TMP environment variable, Solr will not start
using the security policy.

The following snippet added to the first "grant" block fixes the issue:

  // These are needed for when the user overrides the default
temporary directory by TMP envvar.
  permission java.io.FilePermission "${java.io.tmpdir}", "read,write";
  permission java.io.FilePermission "${java.io.tmpdir}${/}-",
"read,write,delete";

Is this fix appropriate? Could this change be merged upstream?

Thanks,
Nandor

Reply via email to