Skip to content

IBX-11952: Made system resilient to Accept-Language: * locale - #804

Merged
konradoboza merged 1 commit into
5.0from
ibx-11952-fixed-locale-overriding
Aug 12, 2026
Merged

IBX-11952: Made system resilient to Accept-Language: * locale#804
konradoboza merged 1 commit into
5.0from
ibx-11952-fixed-locale-overriding

Conversation

@konradoboza

@konradoboza konradoboza commented Aug 11, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-11952

Related PRs:

Description:

This issue surface while working on MCP integration for SaaS. MCP clients (MCP Inspector, Claude etc) send Accept-Language: *. The MCP routes in SaaS by default resolve to the admin siteaccess, where Ibexa AdminUi's RequestLocaleListener feeds the request's preferred locale into setLocale('*').

It is rejected by the Symfony translator ("Invalid \"*\" locale") and the request 500s. MCP is a locale-agnostic JSON-RPC API and concerning Accept-Language: * (RFC 7231 "any language") is a valid header value but not a concrete locale, we should be at least prepared to have a fallback instead of crashing the application.

For QA:

Documentation:

@konradoboza konradoboza self-assigned this Aug 11, 2026
@konradoboza konradoboza added Bug Something isn't working Ready for review Improvement and removed Bug Something isn't working labels Aug 11, 2026
@sonarqubecloud

Copy link
Copy Markdown

@konradoboza
konradoboza merged commit 1cfb301 into 5.0 Aug 12, 2026
41 of 43 checks passed
@konradoboza
konradoboza deleted the ibx-11952-fixed-locale-overriding branch August 12, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants