Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
8.5, 9.0
-
None
-
None
Description
When trying to run the test suite from a directory with white-space in the path name, SolrTestCase does not load at all:
[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!
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.
Attachments
Issue Links
- is broken by
-
LOG4J2-2761 log4j2 fails when a whitespace is in the file path and Java security manager is used
- Resolved
- is fixed by
-
SOLR-14466 Upgrade log4j2 to latest release (2.13.2)
- Closed
- is related to
-
LUCENE-9281 Retire SPIClassIterator from master because Java 9+ uses different mechanism to load services when module system is used
- Closed