Skip to content

Logging config URLs with query parameters are not detected as XML #37008

@nikhilraj6692

Description

@nikhilraj6692

While upgrading to Spring boot 3.0.x, if consul contains below property:

logging:
  config: ${spring.cloud.consul.scheme}://${spring.cloud.consul.host}:${spring.cloud.consul.port}/v1/kv/${spring.cloud.consul.config.prefix}/logger.xml?raw=true&xml

it works till spring boot 3.0.4, since LogbackLoggingSystem class expects url to end with "xml"
image

But, with versions above 3.0.4, this has changed and expects logging url to end with ".xml"
image

The problem is that the issue could have been found easily, if it would have printed in logs. But with consul config, nothing prints in logs when this error occurs. Please document this in spring boot 3.0.4+ changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions