Seems like a bug, can you submit a pull request or file a ticket?
Thanks :)

Kind regards,
Johannes


On 13 Jan., 15:04, ykt <[email protected]> wrote:
> Dear all,
> I was playing around symfony2,  and want to try the  one of the
> feature in their security, the switch user.
> And there are error, which obvious passing null parameter which they
> expect an array parameter.
>
> "Catchable Fatal Error: Argument 2 passed to Symfony\Component
> \Security
> \Authorization\AccessDecisionManager::decide() must be an array, null
> given, called in /other/development/sandbox/sandbox/src/vendor/
> symfony/
> src/Symfony/Component/HttpKernel/Security/Firewall/
> SwitchUserListener.php line 118 and defined in /other/development/
> sandbox/sandbox/src/vendor/symfony/src/Symfony/Component/Security/
> Authorization/AccessDecisionManager.php line 48"
>
> This called function is done in
> SwitchUserListerner::attemptSwitchUser()
> $this->accessDecisionManager->decide($token, null, array($this-
>
> >role));
>
> Following is the part of error log:
> ...
> # at AccessDecisionManager->decide(object(UsernamePasswordToken),
> null, array('ROLE_ALLOWED_TO_SWITCH'))
> in /other/development/sandbox/sandbox/src/vendor/symfony/src/Symfony/
> Component/HttpKernel/Security/Firewall/SwitchUserListener.php line 118
> »
>  118.         $this->accessDecisionManager->decide($token, null,
> array($this->role));
> # at SwitchUserListener->attemptSwitchUser(object(Request))
> in /other/development/sandbox/sandbox/src/vendor/symfony/src/Symfony/
> Component/HttpKernel/Security/Firewall/SwitchUserListener.php line 87
> »
> ...
>
> Any idea to what exactly is happening?
> Thanks

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to