Skip to content

Cleanup - #1586

Open
aleksandy wants to merge 14 commits into
playframework:masterfrom
aleksandy:cleanup
Open

Cleanup#1586
aleksandy wants to merge 14 commits into
playframework:masterfrom
aleksandy:cleanup

Conversation

@aleksandy

Copy link
Copy Markdown
Contributor

This PR is a mechanical code cleanup of the framework core. It contains no changes
to public API signatures and no behavior changes, with one deliberate functional removal
(cross-domain policy handler).

* simplify #pad()
* simplify #join()

(cherry picked from commit 89e984c)
(cherry picked from commit 08e53bd)
…nstead of concatenation with empty string

(cherry picked from commit 22cf5d7)
(cherry picked from commit c106f44)
* use HexFormat instead of manual encoding to hex-string

(cherry picked from commit 4e8d1bd)
Netty 3 (org.jboss.netty) classes are not on the classpath since the
netty-4.2 migration, so the documented/default ssl pipeline entries
silently fail with ClassNotFoundException (initChannel swallows
Throwable and logs 'error adding ...').

(cherry picked from cleanup branch fix; affects the same files as the
broken part of cleanup 2391329, but as upgrade/master already has the
wrong prefixes too)
Cherry-picks of mechanical commits (a94f1f9, 22cf5d7) carried over a
partial createCountQuery rewrite that used strip() instead of trim():
strip() also trims unicode whitespace chars recognised by str.strip()
(see py doc / \u001c-\u001f and NBSP), so count queries starting with
those would behave differently than on master. Keep query.trim() to
preserve the original behaviour, and in extractProp use
String.valueOf(...).toLowerCase() instead of Character.toLowerCase so
the lowercasing path stays identical to the old String.toLowerCase()
behaviour (Character.toLowerCase is not equivalent for some chars,
e.g. U+0130).
Remove play.server.FlashPolicyHandler: Adobe Flash is dead
(https://www.adobe.com/products/flashplayer/end-of-life-alternative.html).
It is dropped from the default play.netty.pipeline and
play.ssl.netty.pipeline strings and from the commented examples in
application.conf skeletons.

Note: flash policy requests will no longer be answered; users relying
on it must add their own handler to play.netty.pipeline.

(cherry picked from commit 2391329; ssl pipeline string kept on
io.netty - the cherry-pick carried the broken org.jboss.netty prefix
from [cleanup], which would have re-introduced the regression from
CLEANUP_BRANCH_REVIEW.md §2)
@mergify

mergify Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant