Skip to content

Retire incoming Trackback support and normalize comment links - #178

Merged
snoopdave merged 6 commits into
masterfrom
retire-incoming-trackback
Sep 6, 2026
Merged

Retire incoming Trackback support and normalize comment links#178
snoopdave merged 6 commits into
masterfrom
retire-incoming-trackback

Conversation

@snoopdave

Copy link
Copy Markdown
Contributor

Retires incoming Trackback and tidies how comment links are rendered.

Trackback is long obsolete: the ping endpoint attracts essentially nothing but spam, and the code behind it is some of the least exercised in the tree. Removing it deletes a public unauthenticated endpoint and the request plumbing that fed it, rather than continuing to carry code nobody uses.

Changes

  • Remove TrackbackServlet and WeblogTrackbackRequest, and unmap the servlet from web.xml.
  • Keep TrackbackLinkbackCommentValidator as an inert validator so existing configurations that name it keep starting, with test coverage pinning that behaviour.
  • Render the comment URL in the editor from a normalized, escaped value rather than the raw stored one.
  • Drop the trackback entries from the theme templates, the user guide and the template guide.

Note on provenance

This is the same work as #176, which was opened against the stacked entry-trackback-cleanup branch and merged there rather than into master, so it never reached the default branch. Rather than reopen that PR against a base that is now behind, this branches from current master.

Conflicts and how they were resolved

The original branch predates several changes that have since landed, so seven files conflicted. Resolved to master wherever master is newer:

  • EntryEdit.java — the Mediacast imports stay removed (they went with the enclosure change).
  • ApplicationResources_{fr,ja,ko,zh_CN}.properties — trailing blank lines only; kept master's.

Resolved the other way where this branch is the newer intent:

  • Comments.jsp — uses the escaped safe URL this branch introduces.
  • base.css — takes this branch's line ending, which restores the file-wide CRLF that one line on master had lost.

Verification

Full suite on JDK 11: 297 tests, 0 failures, 0 errors, 1 skipped, including IncomingTrackbackRemovalTest (3).

Confirmed after the merge that the newer work already on master is intact — the enclosure change's import removal, the entry authorization guard, and the delegated enclosure listener — and that TrackbackServlet and WeblogTrackbackRequest are gone with no remaining web.xml references.

https://claude.ai/code/session_019R1jdtwkaYEeA6L9DXEtEi

# Conflicts:
#	app/src/main/resources/ApplicationResources_fr.properties
#	app/src/main/resources/ApplicationResources_ja.properties
#	app/src/main/resources/ApplicationResources_ko.properties
#	app/src/main/resources/ApplicationResources_zh_CN.properties
#	app/src/main/webapp/themes/base.css
Brings the work from the incoming-trackback-retirement branch onto master.
It had been merged into the stacked entry-trackback-cleanup branch rather
than master, so it never reached the default branch.

The branch predates several changes that have since landed, so the conflicts
resolve to master wherever master is newer: the Mediacast imports in EntryEdit
stay removed, and the locale files keep master's trailing whitespace. Two
resolve the other way: the comment link in Comments.jsp uses the escaped
safe URL this branch introduces, and base.css takes the branch's line ending,
which restores the file-wide CRLF that a single line on master had lost.

Claude-Session: https://claude.ai/code/session_019R1jdtwkaYEeA6L9DXEtEi
@snoopdave snoopdave added the 6.1.6 label Sep 5, 2026
@snoopdave
snoopdave merged commit 48cc24b into master Sep 6, 2026
4 checks passed
@snoopdave
snoopdave deleted the retire-incoming-trackback branch September 6, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant