Repository navigation
Conversation
A custom page that is given tags= together with an entry now checks the tags against the weblog, as it already did without an entry. Tag names are HTML-encoded in the feed link titles of #showAutodiscoveryLinks and in the Gaurav and Fauxcoly tag pages. The page cache key includes the page name and the tags, so such pages get their own cache entries.
mraible
approved these changes
Nov 15, 2026
mraible
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Tags are now checked whenever they're given, so an entry plus unknown tags answers 404. The cache key now includes the page name and the URL-encoded tags. I checked the rest of 6.1.x, and every other place that prints the tags already encodes them. Optional: a test for the PageServlet change, which the description says isn't covered.
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.
A custom page reads
tags=from the query string. Three rough edges:entry=also present, the tags weren't checked against the weblog, because the check sat in the last branch of the validation chain. They are now checked whenever they're given; unknown tags answer 404, as they already did without an entry.#showAutodiscoveryLinksprinted the tag names into the feed link titles as is. They're now HTML-encoded there, and in the Gaurav and Fauxcolytags_index.vmpages.Tests:
AutodiscoveryLinksRenderingTestrenders the real macro;WeblogPageCacheKeyTestcovers the keys. Both fail onroller-6.1.xand pass here. No test covers thePageServletchange.mvn -pl app test: 503 tests, 0 failures.Once this is merged, the same change goes to master for 7.0.0, where the Hyde, Terminal and PaperMod tag pages need the same encoding.