Skip to content

Fix a 500 when a crawler requests a path with a file extension - #12490

Merged
nbudin merged 1 commit into
mainfrom
crawler-shell-formats
Nov 25, 2026
Merged

nbudin merged 1 commit into
mainfrom
crawler-shell-formats

Conversation

@nbudin

@nbudin nbudin commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

With the static framework-mode shell enabled, crawlers get the Open Graph document from StaticSpaShellController. When the requested path had a non-HTML extension, Rails looked for a template in that format and raised ActionView::MissingTemplate, answering 500.

Seen in production once so far, from Googlebot requesting /.well-known/assetlinks.json on 2023.beconlarp.com (Sentry INTERCODE-1CE).

The fix renders that document with formats: [:html]. The new test returned 500 before the change; the controller's tests pass with it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UKBUsvfbUjKBu9d6FJoEuJ

With the static shell enabled, a crawler asking for a path such as
/.well-known/assetlinks.json made Rails look for a JSON version of
og_shell/show and answer 500 (Sentry INTERCODE-1CE).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UKBUsvfbUjKBu9d6FJoEuJ
@nbudin nbudin added bug patch Bumps the patch version number on release labels Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage Report: Only Changed Files listed

Package Base Coverage New Coverage Difference
Overall Coverage 🟢 69.9% 🟢 69.9% ⚪ 0%

Minimum allowed coverage is 0%, this run produced 69.9%

@nbudin
nbudin merged commit ac57b7b into main Nov 25, 2026
27 checks passed
@nbudin
nbudin deleted the crawler-shell-formats branch November 25, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug patch Bumps the patch version number on release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant