Skip to content

Fix MDC for project working with logback 1.2.x#3626

Merged
sebr72 merged 1 commit intomapfish:masterfrom
sogelink:f/logback1.2.x
May 28, 2025
Merged

Fix MDC for project working with logback 1.2.x#3626
sebr72 merged 1 commit intomapfish:masterfrom
sogelink:f/logback1.2.x

Conversation

@arnaudboudier-sogelink
Copy link
Copy Markdown
Contributor

We integrate your library into our spring boot 2 project, which can use only 1.2.x logback versions.
https://docs.spring.io/spring-boot/docs/2.7.18/reference/html/dependency-versions.html#appendix.dependency-versions

But in logback 1.2.x, call MDC.setContextMap with a null object create a null pointer.
The modifications does not change the actual behaviour and provide retocompatibilty. I don't know if it's okay for you.

@sbrunner sbrunner added the bug Something isn't working label May 14, 2025
@sebr72 sebr72 self-requested a review May 28, 2025 08:31
Copy link
Copy Markdown
Contributor

@sebr72 sebr72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arnaudboudier-sogelink Hope this helps.
Since you use MFP in your own "non-standard" way. It might be interesting for others if you share a link to your gihub in a new Discussion, with some quick pointers on how it is integrated ?

@sebr72 sebr72 merged commit 13c4878 into mapfish:master May 28, 2025
6 checks passed
@arnaudboudier-sogelink arnaudboudier-sogelink deleted the f/logback1.2.x branch June 3, 2025 07:17
@geo-ghci-int geo-ghci-int bot added this to the 3.32.0 milestone Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants