[
https://issues.apache.org/jira/browse/SOLR-14084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17325257#comment-17325257
]
Mike Drob commented on SOLR-14084:
----------------------------------
If we run our tests with {{java.security.debug=all}} then we can see that the
properties that we thing are being set are not getting resolved:
{noformat}
policy: reading
file:/Users/mdrob/code/solr/gradle/testing/randomization/policies/solr-tests.policy
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property common.dir
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property hadoop.security.credential.provider.path
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property hadoop.security.credential.provider.path
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.jetty.keystore
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.jetty.keystore
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.jetty.truststore
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.jetty.truststore
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.install.dir
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.install.dir
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property jetty.home
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property jetty.home
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.solr.home
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.solr.home
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.data.home
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.data.home
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.default.confdir
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.default.confdir
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.log.dir
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.log.dir
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property log4j.configurationFile
[Policy Parser]: sun.security.util.PropertyExpander$ExpandException:
unable to expand property solr.internal.network.permission
{noformat}
We have a comment noting that these system properties are set by /bin/solr, but
for tests, they are set by SolrTestCaseJ4 which is after the security policy
has already been set and resolved.
> Security manager access denied not causing tests to fail
> --------------------------------------------------------
>
> Key: SOLR-14084
> URL: https://issues.apache.org/jira/browse/SOLR-14084
> Project: Solr
> Issue Type: Test
> Components: Tests
> Reporter: Kevin Risden
> Priority: Major
> Attachments: log.gz
>
>
> FYI [~rcmuir] this is from a run where all the tests pass.
> Looking at the output in ./build/solr-core/test/tests-report.txt
> {code:java}
> # grep -F 'access denied' tests-report.txt | cut -d':' -f2 | sort | uniq -c
> 1 access denied ("java.io.FilePermission"
> "/Users/krisden/repos/apache/lucene-solr/solr/build/solr-core/test/J2/temp/solr.util.TestSolrCLIRunExample_7960AD1EAA781935-001/tempDir-001/failExecuteScript"
> "execute")
> 952 access denied ("java.io.FilePermission"
> "/Users/krisden/repos/apache/lucene-solr/solr/core/src/test-files/solr/filestore"
> "write")
> 30 access denied ("java.io.FilePermission"
> "/Users/krisden/repos/apache/lucene-solr/solr/core/src/test-files/solr/userfiles"
> "write")
> 54 access denied ("java.net.SocketPermission" "----------" "resolve")
> 2 access denied ("java.net.SocketPermission" "thrasher-T100" "resolve")
> 4 127.0.0.1
> {code}
> These didn't cause tests to fail but need to see why these are happening. I
> wouldn't expect we need most of these.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]