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] Makeimpersonation_path() argument mandatory and addimpersonation_url()#51804

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

alexandre-daubois
Copy link
Member

@alexandre-dauboisalexandre-daubois commentedOct 2, 2023
edited
Loading

QA
Branch?6.4
Bug fix?yes
New feature?yes
Deprecations?no
Tickets-
LicenseMIT

Follow-up of#50030

When documenting this function, I found out that theidentifier argument was optional, which seemed weird to me given the function purpose.

I then had a look at the implementation, and I saw thatImpersonateUrlGenerator::generateImpersonationPath() accepts a nullable string. However, the underlying call toImpersonateUrlGenerator::buildPath() doesn't accept a nullable string. I propose to make theidentifier argument mandatory, which makes more sense here.

I also added the missing Changelog line andimpersonation_url()

@stof
Copy link
Member

stof commentedOct 2, 2023

Should we also addimpersonate_url() to be consistent withimpersonate_exit_* exposing bothpath andurl functions in Twig ?

@alexandre-dauboisalexandre-daubois changed the title[Security] Makeimpersonation_path() argument mandatory[Security] Makeimpersonation_path() argument mandatory and addimpersonation_url()Oct 2, 2023
@alexandre-daubois
Copy link
MemberAuthor

I think that's a good idea, I added the new function

@fabpot
Copy link
Member

Thank you@alexandre-daubois.

@fabpotfabpot merged commite11ae31 intosymfony:6.4Oct 2, 2023
@alexandre-dauboisalexandre-daubois deleted the fix-impersonation-path branchOctober 2, 2023 11:41
javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull requestOct 4, 2023
…ation path (alexandre-daubois)This PR was merged into the 6.4 branch.Discussion----------Add new Twig bridge function to generate impersonation pathFix-symfony#18960Fix-symfony#18968However, I think we should wait for this PR to be merged (or not), because it seems the current implementation has a problem:-symfony/symfony#51804~This doc PR takes into account my fix PR above.~ Merged 👍Commits-------061bc3f [TwigBridge] Add new Twig bridge function to generate impersonation path
@PhilETaylor
Copy link
Contributor

Thank you for cleaning up my mess! Appreciate it.

alexandre-daubois reacted with laugh emoji

This was referencedOct 21, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@stofstofstof approved these changes

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

5 participants
@alexandre-daubois@stof@fabpot@PhilETaylor@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp