-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[SecurityBundle] Fix listing listeners in profiler when authenticator manager is disabled #44016
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
Conversation
@@ -233,7 +233,11 @@ | |||
{% else %} | |||
<tr> | |||
<th>listeners</th> | |||
<td>{{ collector.firewall.listeners is empty ? '(none)' : profiler_dump(collector.firewall.listeners, maxDepth=1) }}</td> | |||
<td> | |||
{% if collector.firewall.listeners is defined %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should'nt we display something is the listeners is not defined?
what's about (not tested)
<td>{{ collector.firewall.listeners|default ? profiler_dump(collector.firewall.listeners, maxDepth=1) : '(none)' }}</td>
@94noni Can you show the output of composer show for your application when you run into this? |
@xabbuh here you are:
FYI, it is when the After upgrading to the new security logic, there is no problem |
The bug was introduced in 3ec5e96#diff-e0854f6b2ba3388ec69473baf0dcfcba7db87daad4a3efc86d3a063a00407830R197 where I think we can always use |
@chalasr I've remade the PR, is that what you had in mind? feel free to take over if needed :) |
… manager is disabled
It is but I changed my mind meanwhile :) Just force-pushed your PR. |
Thank you @94noni. |
I am trying to upgrade an app from v4.4 to v5.4 beta1
when going to the profiler > security panel, I got this error:
Neither the property "listeners" nor one of the methods "listeners()", "getlisteners()"/"islisteners()"/"haslisteners()" or "__call()" exist and have public access in class "Symfony\Component\VarDumper\Cloner\Data".
This PR tries to fix this in Twig, I do not know the collector logic to fix differently