Doychin Bondzhev created LOG4J2-3059:
----------------------------------------

             Summary: Log4J fails to open configuration file that is on WSL path
                 Key: LOG4J2-3059
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3059
             Project: Log4j 2
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.14.1
         Environment: Windows 10
Java program running on Windows but with log4j configuration on classpath on WSL
            Reporter: Doychin Bondzhev


When Log4J searches for configuration and config file is located on WSL 
FileUtils.fileFromUri fails to create a File instance.

The reason is that when the URI is in this form 
file://wsl$/some/path/to/log4j.config
new File(uri) throws exception that this uri has authority and as result the 
utility method returns null.

If in this case new File(uri.toString()) is used it works perfectly fine




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to