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

[Security] Deprecate using UsageTrackingTokenStorage outside the request-response cycle#40785

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

@wouterj
Copy link
Member

QA
Branch?5.x
Bug fix?yes
New feature?no
Deprecations?yes
TicketsFix#40778
LicenseMIT
Doc PR-

Currently, you get an "There is currently no session available" exception when using thesecurity.token_storage service outside the main request-response cycle (e.g. in akernel.terminate listener). This PR deprecates such usage and requires developers to update their definitions to explicitly usesecurity.untracked_token_storage instead.

A different solution would be to silently disable tracking in these cases, but I think that might create some unnecessary technical debt.

@wouterjwouterj requested a review fromjderusseApril 12, 2021 16:35
@wouterjwouterj changed the title[Security] Fix UsageTrackingTokenStorage outside the request cycle[Security] Deprecate using UsageTrackingTokenStorage outside the request-response cycleApr 12, 2021
@wouterjwouterjforce-pushed theissue-40778/usage-tracking-token-storage branch 2 times, most recently from6ecdbf7 to53aa87bCompareApril 12, 2021 16:49
Security
--------

* Deprecate using`UsageTrackingTokenStorage` with tracking enabled without a main request. Use the untracking token
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
* Deprecate using`UsageTrackingTokenStorage` with tracking enabled without a main request. Use theuntracking token
* Deprecate using`UsageTrackingTokenStorage` with tracking enabled without a main request. Use theuntracked token

@fabpotfabpotforce-pushed theissue-40778/usage-tracking-token-storage branch from53aa87b to7452476CompareApril 13, 2021 06:27
@fabpot
Copy link
Member

Thank you@wouterj.

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

Reviewers

@derrabusderrabusderrabus left review comments

@fabpotfabpotfabpot approved these changes

@jderussejderussejderusse approved these changes

@chalasrchalasrAwaiting requested review from chalasr

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[HttpFoundation] Regression in using the session in kernel.terminate

5 participants

@wouterj@fabpot@jderusse@derrabus@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp