Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14362

Tests no longer run with whitespace in Solr's checkout directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 8.5, 9.0
    • None
    • Tests
    • 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

          Activity

            People

              uschindler Uwe Schindler
              uschindler Uwe Schindler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: