You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Nándor Mátravölgyi <na...@gmail.com> on 2022/06/02 09:29:25 UTC

Security policy deficiency (system temp directory)

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