You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "uschindler (via GitHub)" <gi...@apache.org> on 2023/05/18 08:04:06 UTC

[GitHub] [lucene] uschindler commented on pull request #12306: Make MAX_DIMENSIONS configurable via a system property.

uschindler commented on PR #12306:
URL: https://github.com/apache/lucene/pull/12306#issuecomment-1552692627

   > The only argument you've given against a system property specifically is:
   > 
   > > system property is not used appropriately (e.g. proper security checks). If there is a security manager, and it doesn't allow read to this property, classes will fail to load.
   > 
   > Okay, good point. I can improve the PR to catch a SecurityException and use the default value; maybe log a warning as well.
   
   Please take the code of MmapDirectory. There it reads a sysprop. The code there is the "most modern" variant to read it. Also wrap it with AccessController.doPrivileged! It is not easy visible in MmapDirectory, because the whole code block is wrapped by AccessController.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org