Add recipe to migrate Tomcat LegacyCookieProcessor to Rfc6265CookieProcessor#1032
Closed
timtebeek wants to merge 1 commit into
Closed
Add recipe to migrate Tomcat LegacyCookieProcessor to Rfc6265CookieProcessor#1032timtebeek wants to merge 1 commit into
timtebeek wants to merge 1 commit into
Conversation
…ocessor Adds UseRfc6265CookieProcessor, a declarative recipe that replaces the className attribute of the Tomcat <CookieProcessor> element from org.apache.tomcat.util.http.LegacyCookieProcessor to org.apache.tomcat.util.http.Rfc6265CookieProcessor in Tomcat configuration files such as context.xml and server.xml.
Jenson3210
reviewed
May 29, 2026
Contributor
Jenson3210
left a comment
There was a problem hiding this comment.
Don't you think ChangeType should be used?
https://github.com/moderneinc/customer-requests/issues/2462#issuecomment-4574499523
Jenson3210
reviewed
May 29, 2026
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.
Adds
org.openrewrite.java.spring.boot3.UseRfc6265CookieProcessor, a declarative recipe that rewrites theclassNameattribute of the Tomcat<CookieProcessor>element fromorg.apache.tomcat.util.http.LegacyCookieProcessortoorg.apache.tomcat.util.http.Rfc6265CookieProcessorin Tomcat configuration files (e.g.context.xml,server.xml).becomes
Rfc6265CookieProcessorhas been the Tomcat default since 8.5;LegacyCookieProcessoris retained only for backwards compatibility. The recipe is intentionally not wired into any version upgrade because RFC 6265 parsing is stricter than the legacy behavior, so it is offered as an opt-in change. TheoldValueguard ensures only the legacy class is rewritten, leaving custom or already-migrated cookie processors untouched (covered by tests).