Skip to content

Conversation

dnl50
Copy link

@dnl50 dnl50 commented Jun 28, 2025

Java's File#toURI method does not encode all reserved URI characters like the + character, because they only need to be encoded in other parts of the URI. The java.net.URLDecoder on the other hand expects the x-www-form-urlencode encoding and therefore replaces these characters. Automatic reloading of logback configuration files in directories with the + did therefore not work. Fixes #950

Java's `File#toURI` method does not encode all reserved URI characters
like the `+` character, because they only need to be encoded in other
parts of the URI. The `java.net.URLDecoder` on the other hand expects
the `x-www-form-urlencode` encoding and therefore replaces these
characters. Automatic reloading of logback configuration files
in directories with the `+` did therefore not work. Fixes qos-ch#950

Signed-off-by: Daniel Meier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatic reload does not work when path contains specific characters
1 participant