Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpKernel] Fix default locale is ignored whenset_locale_from_accept_language is used#53195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@jkobus
Copy link
Contributor

@jkobusjkobus commentedDec 23, 2023
edited by nicolas-grekas
Loading

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#53086
LicenseMIT

Fix as discussed in#53086

@carsonbotcarsonbot added this to the6.4 milestoneDec 23, 2023
@jkobusjkobus changed the titleFix default locale is ignored whenset_locale_from_accept_language is used[HttpFoundation][FrameworkBundle] Fix default locale is ignored whenset_locale_from_accept_language is usedDec 23, 2023
@smnandre
Copy link
Member

I'm having just a doubt about the second line of the "if"

  $request->attributes->set('_vary_by_language', true);

It is later used by the ResponseListener to send a Vary header.. so i guess we want to send this header regardless of whether the client send its preferences or not (or that coud generate big cache problems)

(sorry, did not think about that when I wrote the example)

nicolas-grekas reacted with thumbs up emoji

@chalasr
Copy link
Member

Indeed. Nice catch@smnandre

smnandre reacted with laugh emoji

@carsonbotcarsonbot changed the title[HttpFoundation][FrameworkBundle] Fix default locale is ignored whenset_locale_from_accept_language is usedFix default locale is ignored whenset_locale_from_accept_language is usedDec 26, 2023
@carsonbotcarsonbot changed the titleFix default locale is ignored whenset_locale_from_accept_language is used[HttpKernel] Fix default locale is ignored whenset_locale_from_accept_language is usedDec 26, 2023
@jkobusjkobusforce-pushed thedefault-locale-is-ignored-fix branch from6123971 to671befaCompareDecember 27, 2023 09:17
@jkobus
Copy link
ContributorAuthor

Thanks, I added a test case for that@smnandre

smnandre reacted with thumbs up emoji

@fabpot
Copy link
Member

Isn't something we need to merge in 5.4?

@chalasr
Copy link
Member

@fabpot yes, good catch.

@chalasrchalasr modified the milestones:6.4,5.4Dec 29, 2023
@nicolas-grekasnicolas-grekasforce-pushed thedefault-locale-is-ignored-fix branch from671befa toc626b3aCompareDecember 29, 2023 13:50
@nicolas-grekas
Copy link
Member

Thank you@jkobus.

@nicolas-grekasnicolas-grekas merged commit386e238 intosymfony:5.4Dec 29, 2023
@jkobus
Copy link
ContributorAuthor

Thanks, happy new year for you all 🎊

chalasr reacted with hooray emojichalasr reacted with heart emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@chalasrchalasrchalasr approved these changes

@dunglasdunglasAwaiting requested review from dunglas

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

7 participants

@jkobus@smnandre@chalasr@fabpot@nicolas-grekas@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp