[
https://issues.apache.org/jira/browse/SOLR-14362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Uwe Schindler updated SOLR-14362:
---------------------------------
Description:
When trying to run the test suite from a directory with white-space in the path
name, SolrTestCase does not load at all:
{noformat}
[junit4] ERROR 0.00s J3 | SearchHandlerTest (suite) <<<
[junit4] > Throwable #1: java.security.AccessControlException: access
denied ("java.io.FilePermission"
"C:\Users\Uwe%20Schindler\Projects\lucene\trunk-lusolr1\solr\core\src\test-files\log4j2.xml"
"read")
[junit4] > at
java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
[junit4] > at
java.base/java.security.AccessController.checkPermission(AccessController.java:895)
[junit4] > at
java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
[junit4] > at
java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:661)
[junit4] > at java.base/java.io.File.exists(File.java:815)
[junit4] > at
org.apache.logging.log4j.core.util.FileUtils.fileFromUri(FileUtils.java:88)
[junit4] > at
org.apache.logging.log4j.core.config.ConfigurationSource.fromResource(ConfigurationSource.java:281)
[junit4] > at
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:449)
[junit4] > at
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:386)
[junit4] > at
org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:261)
[junit4] > at
org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:616)
[junit4] > at
org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:637)
[junit4] > at
org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:231)
[junit4] > at
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)
[junit4] > at
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
[junit4] > at
org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
[junit4] > at
org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:121)
[junit4] > at
org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
[junit4] > at
org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46)
[junit4] > at
org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
[junit4] > at
org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
[junit4] > at
org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
[junit4] > at
org.apache.solr.SolrTestCase.<clinit>(SolrTestCase.java:66)
[junit4] > at java.base/java.lang.Class.forName0(Native Method)
[junit4] > at java.base/java.lang.Class.forName(Class.java:398)
[junit4] Completed [1/907 (1!)] on J3 in 1.73s, 0 tests, 1 error <<<
FAILURES!
{noformat}
This is a new issue and seems to be introduced not long ago. The last time I
ran tests, it worked. Does anybody know what changed? To me it looks like there
is some wrong encoding involved.
was:
When trying to run the test suite from a directory with white-space in the path
name, SolrTestCase does not load at all:
{noformat}
[junit4] ERROR 0.00s J3 | SearchHandlerTest (suite) <<<
[junit4] > Throwable #1: java.security.AccessControlException: access
denied ("java.io.FilePermission"
"C:\Users\Uwe%20Schindler\Projects\lucene\trunk-lusolr1\solr\core\src\test-files\log4j2.xml"
"read")
[junit4] > at
java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
[junit4] > at
java.base/java.security.AccessController.checkPermission(AccessController.java:895)
[junit4] > at
java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
[junit4] > at
java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:661)
[junit4] > at java.base/java.io.File.exists(File.java:815)
[junit4] > at
org.apache.logging.log4j.core.util.FileUtils.fileFromUri(FileUtils.java:88)
[junit4] > at
org.apache.logging.log4j.core.config.ConfigurationSource.fromResource(ConfigurationSource.java:281)
[junit4] > at
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:449)
[junit4] > at
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:386)
[junit4] > at
org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:261)
[junit4] > at
org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:616)
[junit4] > at
org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:637)
[junit4] > at
org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:231)
[junit4] > at
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)
[junit4] > at
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
[junit4] > at
org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
[junit4] > at
org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:121)
[junit4] > at
org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
[junit4] > at
org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46)
[junit4] > at
org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
[junit4] > at
org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
[junit4] > at
org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
[junit4] > at
org.apache.solr.SolrTestCase.<clinit>(SolrTestCase.java:66)
[junit4] > at java.base/java.lang.Class.forName0(Native Method)
[junit4] > at java.base/java.lang.Class.forName(Class.java:398)
[junit4] Completed [1/907 (1!)] on J3 in 1.73s, 0 tests, 1 error <<<
FAILURES!
{noformat}
This is a new issue and seems to be introduced not long ago. The last time I
ran tests, it worked. Does anybody know what changed. To me it looks like there
is some wrong encoding involved.
> Tests no longer run with whitespace in Solr's checkout directory
> ----------------------------------------------------------------
>
> Key: SOLR-14362
> URL: https://issues.apache.org/jira/browse/SOLR-14362
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Tests
> Affects Versions: master (9.0)
> Reporter: Uwe Schindler
> Priority: Major
>
> When trying to run the test suite from a directory with white-space in the
> path name, SolrTestCase does not load at all:
> {noformat}
> [junit4] ERROR 0.00s J3 | SearchHandlerTest (suite) <<<
> [junit4] > Throwable #1: java.security.AccessControlException: access
> denied ("java.io.FilePermission"
> "C:\Users\Uwe%20Schindler\Projects\lucene\trunk-lusolr1\solr\core\src\test-files\log4j2.xml"
> "read")
> [junit4] > at
> java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
> [junit4] > at
> java.base/java.security.AccessController.checkPermission(AccessController.java:895)
> [junit4] > at
> java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
> [junit4] > at
> java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:661)
> [junit4] > at java.base/java.io.File.exists(File.java:815)
> [junit4] > at
> org.apache.logging.log4j.core.util.FileUtils.fileFromUri(FileUtils.java:88)
> [junit4] > at
> org.apache.logging.log4j.core.config.ConfigurationSource.fromResource(ConfigurationSource.java:281)
> [junit4] > at
> org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:449)
> [junit4] > at
> org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:386)
> [junit4] > at
> org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:261)
> [junit4] > at
> org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:616)
> [junit4] > at
> org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:637)
> [junit4] > at
> org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:231)
> [junit4] > at
> org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)
> [junit4] > at
> org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
> [junit4] > at
> org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
> [junit4] > at
> org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:121)
> [junit4] > at
> org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
> [junit4] > at
> org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46)
> [junit4] > at
> org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
> [junit4] > at
> org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
> [junit4] > at
> org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
> [junit4] > at
> org.apache.solr.SolrTestCase.<clinit>(SolrTestCase.java:66)
> [junit4] > at java.base/java.lang.Class.forName0(Native Method)
> [junit4] > at java.base/java.lang.Class.forName(Class.java:398)
> [junit4] Completed [1/907 (1!)] on J3 in 1.73s, 0 tests, 1 error <<<
> FAILURES!
> {noformat}
> This is a new issue and seems to be introduced not long ago. The last time I
> ran tests, it worked. Does anybody know what changed? To me it looks like
> there is some wrong encoding involved.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]