Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ BadRequestHttpException
$username = ParameterBagUtils::getRequestParameterValue($request, $this->options['username_parameter']);
$password = ParameterBagUtils::getRequestParameterValue($request, $this->options['password_parameter']);
}
if (!\is_string($username) && (!\is_object($username) || !method_exists($username, '__toString'))) {
throw new BadRequestHttpException(sprintf('The key "%s" must be a string, "%s" given.', $this->options['username_parameter'], \gettype($username)));
}
$username = trim($username);
if (\strlen($username) > Security::MAX_USERNAME_LENGTH) {
in
vendor/symfony/security-http/Firewall/AbstractAuthenticationListener.php
->
attemptAuthentication
(line 132)
try {
if ($this->options['require_previous_session'] && !$request->hasPreviousSession()) {
throw new SessionUnavailableException('Your session has timed out, or you have disabled cookies.');
}
if (null === $returnValue = $this->attemptAuthentication($request)) {
return;
}
if ($returnValue instanceof TokenInterface) {
$this->sessionStrategy->onAuthentication($request, $returnValue);
in
vendor/symfony/security-bundle/Debug/WrappedLazyListener.php
->
authenticate
(line 48)
in
vendor/symfony/security-http/Firewall/AbstractListener.php
->
authenticate
(line 27)
in
vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php
->
__invoke
(line 62)
}, $listener, FirewallContext::class)();
$listener($event);
} else {
$wrappedListener = $listener instanceof AbstractListener ? new WrappedLazyListener($listener) : new WrappedListener($listener);
$wrappedListener($event);
$wrappedListeners[] = $wrappedListener->getInfo();
}
if ($event->hasResponse()) {
break;
in
vendor/symfony/security-http/Firewall.php
->
callListeners
(line 84)
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelRequest
(line 117)
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 151)
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 133)
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 79)
public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 191)
Stack Trace
BadRequestHttpException |
---|
Symfony\Component\HttpKernel\Exception\BadRequestHttpException: The key "_username" must be a string, "NULL" given. at vendor/symfony/security-http/Firewall/UsernamePasswordFormAuthenticationListener.php:89 at Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener->attemptAuthentication() (vendor/symfony/security-http/Firewall/AbstractAuthenticationListener.php:132) at Symfony\Component\Security\Http\Firewall\AbstractAuthenticationListener->authenticate() (vendor/symfony/security-bundle/Debug/WrappedLazyListener.php:48) at Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener->authenticate() (vendor/symfony/security-http/Firewall/AbstractListener.php:27) at Symfony\Component\Security\Http\Firewall\AbstractListener->__invoke() (vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php:62) at Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->callListeners() (vendor/symfony/security-http/Firewall.php:84) at Symfony\Component\Security\Http\Firewall->onKernelRequest() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:151) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:133) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:79) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:191) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |