Skip to content

Automatic reload does not work when path contains specific characters #950

@dnl50

Description

@dnl50

I noticed that automatic configuration reloading does not work when the configuration file path contains a + sign. When printing debug information, the + sign is replaced with a blank in the ConfigurationWatchList:

13:27:34,180 |-INFO in ch.qos.logback.classic.model.processor.ConfigurationModelHandlerFull - Registering a new ReconfigureOnChangeTask ReconfigureOnChangeTask(born:1751023654179)
13:27:34,182 |-INFO in ch.qos.logback.classic.model.processor.ConfigurationModelHandlerFull - Will scan for changes in [ConfigurationWatchList(mainURL=file:/tmp/ablutz-migration-client-1.1.0+build.4/bin/logback.xml, fileWatchList={/tmp/ablutz-migration-client-1.1.0 build.4/bin/logback.xml}, urlWatchList=[})]
13:27:34,184 |-INFO in ch.qos.logback.classic.model.processor.ConfigurationModelHandlerFull - Setting ReconfigureOnChangeTask scanning period to 15 seconds

Seems like a URL decoding issue with the file: protocol.

Logback Version used: 1.5.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions