Skip to content

Remove dead-host setless URL entries for tokens now in TDLS#10540

Open
vanja-ivancevic wants to merge 1 commit intoCard-Forge:masterfrom
vanja-ivancevic:fix/remove-dead-token-cdn-urls
Open

Remove dead-host setless URL entries for tokens now in TDLS#10540
vanja-ivancevic wants to merge 1 commit intoCard-Forge:masterfrom
vanja-ivancevic:fix/remove-dead-token-cdn-urls

Conversation

@vanja-ivancevic
Copy link
Copy Markdown
Contributor

Follow-up to #10518.

  • Removes 5 setless URL entries from token-images.txt (b_0_1_thrull.jpg, g_1_1_saproling.jpg, w_1_1_citizen.jpg, u_1_1_camarid.jpg, r_1_1_goblin.jpg) that point at downloads.cardforge.org, a host with no DNS A record (NXDOMAIN). All 5 URLs return HTTP 000 (no connection possible) from any client today.
  • These entries pre-date the TDLS edition added in Token edition selection improvements (filter, era-match, per-game pinning) and 55 new token registrations #10518 and were intended as setless fallbacks for tokens that had no edition-specific registration. Now that TDLS provides edition-specific URLs for the same 5 scripts, the dead setless entries serve no purpose.
  • The risk they pose: legacy clients (years ago, when the host was alive) downloaded these as loose pics/tokens/<script>.jpg files. When Forge now picks TDLS via the new era-match preference and the per-edition cache is empty, ImageKeys.getImageFile falls through its lookup chain to those loose files and serves stale modern-frame art. Removing the entries means fresh installs cannot produce the conflicting loose files in the first place.
  • Existing affected users still need to delete loose .jpg files at the root of pics/tokens/ to clear their stale cache. That is a one-time cleanup, not a code fix.

The Card Conjurer-rendered TDLS (Duelist Magazine) tokens registered in
PR Card-Forge#10518 introduced edition-specific URLs for thrull, saproling,
citizen, camarid, and goblin. The old setless entries pointing at
downloads.cardforge.org (DNS NXDOMAIN since at least 2025-04) have been
unreachable for some time, but on legacy clients they wrote loose
pics/tokens/<script>.jpg files years ago. When Forge now picks TDLS via
era-match and the per-edition cache is empty, the lookup chain falls
through to those legacy loose files (ImageKeys.getImageFile setless
fallback) and serves stale modern-frame art instead of the new TDLS
download.

Removing these 5 dead entries prevents fresh installs from ever
producing the conflicting loose files. Existing affected users still
need a one-time cleanup of pics/tokens/*.jpg loose files to recover.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vanja-ivancevic
Copy link
Copy Markdown
Contributor Author

Should we delete all dead cardforge URLs?

@Jetz72 Jetz72 added the Images label Apr 27, 2026
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.

2 participants