Repository navigation
Use versioned FreeMarker Configuration defaults - #50099
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates Keycloak’s FreeMarker configuration initialization to use a versioned Configuration constructor, ensuring FreeMarker runs with defaults aligned to the bundled engine version rather than legacy 2.3.0 “incompatible improvements” behavior.
Changes:
- Replaced deprecated
new Configuration()withnew Configuration(Configuration.VERSION_2_3_32)inDefaultFreeMarkerProvider. - Ensures FreeMarker defaults match the project’s bundled FreeMarker version (
<freemarker.version>2.3.32</freemarker.version>in the rootpom.xml), aligning with security/correctness improvements gated by version flags.
|
As of CONTRIBUTING.md, "new contributors may have at most 2 open pull requests at a time". Closing this one due to that. |
|
Hi @ahus1 , Thanks for the clarification regarding the CONTRIBUTING.md rule for new contributors! I completely understand the need to keep review workloads manageable. I would like to keep contributing regularly to Keycloak. Could you clarify what the typical milestone or criteria is for a contributor to no longer be restricted by the 2-PR limit? Thank you for your time and guidance! |
|
@MdTanwer I'm re-opening this once I merged your other requests. Initially I don't see any harm in this change and it fixes the scanner issue. |
|
Can you please sign the commit |
Initialize FreeMarker with the bundled VERSION_2_3_32 to avoid legacy 2.3.0 defaults and opt into current security and correctness improvements. Signed-off-by: MdTanwer <tanw9004167@gmail.com>
0eaf9a5 to
708dea3
Compare
done |
Initialize FreeMarker with the bundled VERSION_2_3_32 to avoid legacy 2.3.0 defaults and opt into current security and correctness improvements. Signed-off-by: MdTanwer <tanw9004167@gmail.com>
Summary
new Configuration()withnew Configuration(Configuration.VERSION_2_3_32)inDefaultFreeMarkerProvider.Fix #49922