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

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

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
------------------------------

Ceki Gülcü created this issue on 14/Mar/23 1:52 PM

Summary:               TrustStore/KeyStore is not being found in Linux OSs
Issue Type:           Bug
Affects Versions:     1.2.6
Assignee:             Logback dev list
Created:              14/Mar/23 1:52 PM
Environment:
    Ubuntu 20.0.4.4LTS
  
    Java 11.0.16
  
    ---------------------
  
    SLES 15-SP4
  
    Java 11.0.16
  
   
Priority:             Critical
Reporter:             Ceki Gülcü
Description:
  Gabriel Barreto Juliao created this issue on 30/Dec/22 8:44 PM
     
   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 (v9.6.0#960000-sha1:a3ee8af)

_______________________________________________
logback-dev mailing list
logback-dev@qos.ch
https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-dev

Reply via email to