logback / LOGBACK-1714 [Open]
TrustStore/KeyStore is not being found in Linux OS's

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/LOGBACK-1714

==============================
 Issue created
------------------------------

Gabriel Barreto Juliao created this issue on 30/Dec/22 8:44 PM
Summary:              TrustStore/KeyStore is not being found in Linux OS's
Issue Type:           Bug
Affects Versions:     1.2.6
Assignee:             Logback dev list
Components:           logback-core
Created:              30/Dec/22 8:44 PM
Environment:
  Ubuntu 20.0.4.4LTS
  
  Java 11.0.16
  
  ---------------------
  
  SLES 15-SP4
  
  Java 11.0.16
  
   
Priority:             Critical
Reporter:             Gabriel Barreto Juliao
Description:
  When using SSL configuration, Logback cannot find Keystore/Truststore file in 
the specified path in Linux OS's
  h1. To Reproduce
   # Create an Appender/Receiver that supports SSL
   # Reference the location to your TrustStore/KeyStore
   # Make sure the file exists in the specified location inside your Linux OS
   # Package the application (JAR)
   # Execute the JAR
  
  h1. Expected behavior
  
  
  A file not found "java.security.KeyStoreException" should be thrown.
  
   
  h1. Observation
  
  
  I've debug this inside Intellij. The method 
Loader.getResourceBySelfClassLoader returns a null value for the URL, which 
forces the url.openStream(); to throw a FileNotFoundException, which then 
throws KeyStoreException.
  
   
  
  The error happens only in Linux, because in Windows it uses a different flow 
inside the LocationUtil.urlForResource. it uses SCHEME_PATTERN instead of 
CLASSPATH_SCHEME. Windows matches CLASSPATH_SCHEME because paths start with "C:"


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)

_______________________________________________
logback-dev mailing list
[email protected]
https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-dev

Reply via email to