Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://issues.apache.org/jira/browse/SOLR-XXXXX
Description
On Mac /tmp is a symlink and this causes issues with the Solr security manager. SOLR-16457 / #1282 fixed a similar issue with symlinks and the security manager. This applies the same type of solution but specifically for
java.io.tmpdir
to ensure that on Macs (and Linux) the full path is used not the symlink. This makes the security manager checking the path happy since its not trying to compare to a symlink anymore.This assumes that
TMPDIR
is already defined which looks like it is probably the case, but not 100% sure. Otherwise we fall back toTEMP
and thenTMP
and finally/tmp
. If someone wants to override the tmp dir they should setTMPDIR
and not try to just set-Djava.io.tmpdir...
References:
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.