Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Security] TraceableAccessDecisionManager: fix inspecting voters of custom access decision managers #47817

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

sarbanha
Copy link
Contributor

Q A
Branch? 6.1
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #...
License MIT
Doc PR symfony/symfony-docs#...

Removed the "if" statement that verifies if the ADM is instance of AccessDecisionManager.

This control breaks profiler when it is trying to browse "Security" tab while a custom ADM was developed. The reason is that the "if" statement prevents SecurityDataCollector.php to retrieve the strategy and the list of voters.

Based on my tests this modification doesn't affect the regular functionality of security-core.

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

Not a bug per se though, I'd say this should be merged in 6.2.

@sarbanha
Copy link
Contributor Author

Not a bug per se though, I'd say this should be merged in 6.2.

I couldn't decide initially if it should be suggested as a bug or feature, but it looks more like an improvement. Do you think I should create another PR for 6.2 too?

I think it has been said that merges to older tags would be merged to newer ones in a few days.

@chalasr
Copy link
Member

chalasr commented Oct 10, 2022

No worry, we can switch the branch while merging this PR.

@derrabus derrabus modified the milestones: 6.1, 6.2 Oct 10, 2022
Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

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

👍🏻 for 6.2

@carsonbot carsonbot changed the title [TraceableAccessDecisionManager] fixed voter enumerations [Security] [TraceableAccessDecisionManager] fixed voter enumerations Oct 10, 2022
@derrabus derrabus changed the title [Security] [TraceableAccessDecisionManager] fixed voter enumerations [Security] TraceableAccessDecisionManager: fix inspecting voters of custom access decision managers Oct 10, 2022
@chalasr chalasr changed the base branch from 6.1 to 6.2 October 11, 2022 11:20
@chalasr
Copy link
Member

chalasr commented Oct 11, 2022

Thank you @sarbanha.

@chalasr chalasr merged commit 1337ea2 into symfony:6.2 Oct 11, 2022
@fabpot fabpot mentioned this pull request Oct 24, 2022
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