Repository navigation
Keep configuration values and raw handles out of log messages - #416
Merged
Merged
Conversation
With DEBUG logging on for WebloggerConfig, Roller logged every startup property as key=value, including the database password, OIDC client secrets and the remember-me key, and logged each looked-up value too. It now logs the number of properties loaded and the names of the ones looked up. The "Invalid handle" error escapes the handle, so line breaks in a request can't add lines to the log. This matches 6.1.8 (ae8bf7d). WebloggerConfigLoggingTest and its LogCapture helper come from 6.1.x.
…kups JPAPersistenceStrategy logged each jakarta.persistence, eclipselink, hibernate or openjpa property from roller-custom.properties with its value at INFO, so a credential an operator put there reached the log. It now logs only the name. UIActionInterceptor logged the weblog request parameter as is when the weblog lookup failed. It now escapes it, as 6.1.8 does, and UIActionInterceptorTest gets 6.1.x's test for it.
snoopdave
approved these changes
Dec 3, 2026
snoopdave
left a comment
Contributor
There was a problem hiding this comment.
LGTM — keeps configuration values out of WebloggerConfig and JPAPersistenceStrategy logs and escapes invalid weblog handles in log messages, with clean Log4j2 capture tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With DEBUG logging on for WebloggerConfig, Roller logs every startup property as key=value at startup, including the database password, OIDC client secrets and the remember-me key. It also logs each value it looks up.