Skip to content

The logging.config does not support configuring URLs that do not end with ".xml". #43620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JecketLiao opened this issue Dec 27, 2024 · 2 comments
Labels
status: duplicate A duplicate of another issue

Comments

@JecketLiao
Copy link

My Spring Boot version is 3.2.7. The logging.config is set to a URL that can load an XML file, but the URL address does not end with ".xml", which causes the project to fail to start. The error occurs at the if (url.getPath().endsWith(".xml")) line in the LogbackLoggingSystem's configureByResourceUrl method. By comparing the source code, I found that in previous versions, the judgment code here was not through getPath(), but toString(). Can the source code be modified to support URLs whose paths do not end with ".xml"?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 27, 2024
@nosan
Copy link
Contributor

nosan commented Dec 27, 2024

It has already been fixed in version 3.2.12

#42986

@JecketLiao
Copy link
Author

thanks!

@wilkinsona wilkinsona reopened this Dec 27, 2024
@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2024
@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants