This is just a heads up that I will be committing in LUCENE-5650 that
Ryan and I have been working on for some time now. This patch adds
security manager rules that effectively prevent the JVM from writing
anything outside its temporary folder (including the CWD!).

While it may sound like an insane restriction, we have found many
places in the code where writes were happening to source code
locations or were not needed at all (a separate appender creating
velocity.log, for example). If you need a writeable location, call
createTempDir() or createTempFile(); it should be available to any
test that inherits from LuceneTestCase. There are other benefits of
doing this -- temporary files will be cleaned up automatically after
the test completes successfully, the path of each temporary file
contains the test's name and seed to map files back to what created
them, etc.

In general, I think the benefits outweigh the (subjectively perceived
:) additional burden of calling createTempDir().

Dawid

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

Reply via email to