rmuir commented on a change in pull request #1141: SOLR-14147 change the 
Security manager to default to true.
URL: https://github.com/apache/lucene-solr/pull/1141#discussion_r373753594
 
 

 ##########
 File path: solr/bin/solr.cmd
 ##########
 @@ -1187,12 +1187,12 @@ IF "%ENABLE_REMOTE_JMX_OPTS%"=="true" (
   set REMOTE_JMX_OPTS=
 )
 
-REM Enable java security manager (limiting filesystem access and other things)
-IF "%SOLR_SECURITY_MANAGER_ENABLED%"=="true" (
-  set SECURITY_MANAGER_OPTS=-Djava.security.manager ^
--Djava.security.policy="%SOLR_SERVER_DIR%\etc\security.policy" ^
--Djava.security.properties="%SOLR_SERVER_DIR%\etc\security.properties" ^
--Dsolr.internal.network.permission=*
+REM Enable java security manager by default (limiting filesystem access and 
other things)
+IF NOT DEFINED SOLR_SECURITY_MANAGER_ENABLED (
 
 Review comment:
   to keep the `.cmd` logic simple, we may just want to set the environment 
variable, if it is not already set. It limits the changes to what we want to do 
(changing the default) with just a simple if-statement. And we can avoid 
wrestling with any of the other parts of this CMD file :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to