Re: Issue with white spaces and log4j2 configuration loaded from resource jar

2021-12-28 Thread Gary Gregory
A legal URI cannot contain a space (per the RFC), you'll have to escape it to %20. Gary On Tue, Dec 28, 2021 at 3:29 PM Leon Finker wrote: > Hi, > > In one of our applications we're hitting the following issue in the > latest log4j2 versions. We specify a config file, and it's found and > loade

Re: Issue with white spaces and log4j2 configuration loaded from resource jar

2021-12-28 Thread Leon Finker
Hi Ralph, Upon further investigation the application is setting a URLClassLoader. Not using standard class loader that is normally used. I have to try and reproduce it. This happens only in this setup. Maybe the best thing is to just not rely on finding log4j config from jar any more and use absol

Re: Issue with white spaces and log4j2 configuration loaded from resource jar

2021-12-28 Thread Ralph Goers
Yes. It would be best if you could provide a sample that fails. I am assuming from your message that this happens on windows. Ralph > On Dec 28, 2021, at 1:29 PM, Leon Finker wrote: > > Hi, > > In one of our applications we're hitting the following issue in the > latest log4j2 versions. We sp

Issue with white spaces and log4j2 configuration loaded from resource jar

2021-12-28 Thread Leon Finker
Hi, In one of our applications we're hitting the following issue in the latest log4j2 versions. We specify a config file, and it's found and loaded from the class loader by log4j2. Unfortunately, it seems like there was a breaking change some time ago. It can no longer handle white spaces in the U