Exceptions
Exceptions 3
Symfony\Component\HttpKernel\Exception\ AccessDeniedHttpException
}$this->user = $U;}catch (\Throwable $ex){throw new AccessDeniedHttpException("Ungültige Zugangsdaten.".$ex->getMessage(),$ex);}}protected function parseRequest(Request $request){
ServiceBaseController->loadUser()
in
src/Diplix/KMGBundle/Controller/Service/Api2Controller.php
(line 65)
return false;}protected function parseAndAuth(Request $request){$data = $this->parseRequest($request);$this->loadUser($data['login'],$data['password'],false);// do not detach user -> deprecated and kills further ops which rely on objects with an association with that user (e.g. deviceTokens)return $data;}protected function storeToken(array $req, $source='')
Api2Controller->parseAndAuth()
in
src/Diplix/KMGBundle/Controller/Service/Api2Controller.php
(line 118)
parent::__construct($this->hasher,$this->managerRegistry);}public function indexAction(Request $request){$req = $this->parseAndAuth($request);// auth successful at this point$this->storeToken($req,"indexAction");$res = ['success' => true,'user' => [
in
vendor/symfony/http-kernel/HttpKernel.php
->
indexAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);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 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
Request::setTrustedHosts([$trustedHosts]);}$kernel = new AppKernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
RuntimeException
in
src/Diplix/KMGBundle/Repository/UserRepository.php
(line 311)
'Unable to find an %s active user object identified by "%s".',($e instanceof NonUniqueResultException ? 'unique':''),$username);if ($suppressSymfonyAuth)throw new \RuntimeException($message,0,$e);else// UserNameNotFound exception will redirect to auth subsystem and force a http 500 error if this not configured (like when within the service)throw new UsernameNotFoundException($message, 0, $e);}return $user;
UserRepository->loadUserByUsername()
in
src/Diplix/KMGBundle/Controller/Service/ServiceBaseController.php
(line 44)
try{/** @var UserRepository $ur */$this->userRepo = $this->managerRegistry->getRepository(User::class);/** @var User $U */$U = $this->userRepo->loadUserByUsername($userName,true);if (!$this->hasher->isPasswordValid($U, $password)){throw new \RuntimeException("Ungültiges Passwort.");}if ($checkMembership)
ServiceBaseController->loadUser()
in
src/Diplix/KMGBundle/Controller/Service/Api2Controller.php
(line 65)
return false;}protected function parseAndAuth(Request $request){$data = $this->parseRequest($request);$this->loadUser($data['login'],$data['password'],false);// do not detach user -> deprecated and kills further ops which rely on objects with an association with that user (e.g. deviceTokens)return $data;}protected function storeToken(array $req, $source='')
Api2Controller->parseAndAuth()
in
src/Diplix/KMGBundle/Controller/Service/Api2Controller.php
(line 118)
parent::__construct($this->hasher,$this->managerRegistry);}public function indexAction(Request $request){$req = $this->parseAndAuth($request);// auth successful at this point$this->storeToken($req,"indexAction");$res = ['success' => true,'user' => [
in
vendor/symfony/http-kernel/HttpKernel.php
->
indexAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);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 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
Request::setTrustedHosts([$trustedHosts]);}$kernel = new AppKernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Doctrine\ORM\ NoResultException
in
vendor/doctrine/orm/src/AbstractQuery.php
(line 1000)
public function getSingleResult($hydrationMode = null){$result = $this->execute(null, $hydrationMode);if ($this->_hydrationMode !== self::HYDRATE_SINGLE_SCALAR && ! $result) {throw new NoResultException();}if (! is_array($result)) {return $result;}
try{// The Query::getSingleResult() method throws an exception// if there is no record matching the criteria.$user = $q->getSingleResult();}catch (NoResultException | NonUniqueResultException $e) // php >= 7.1{$message = sprintf('Unable to find an %s active user object identified by "%s".',
UserRepository->loadUserByUsername()
in
src/Diplix/KMGBundle/Controller/Service/ServiceBaseController.php
(line 44)
try{/** @var UserRepository $ur */$this->userRepo = $this->managerRegistry->getRepository(User::class);/** @var User $U */$U = $this->userRepo->loadUserByUsername($userName,true);if (!$this->hasher->isPasswordValid($U, $password)){throw new \RuntimeException("Ungültiges Passwort.");}if ($checkMembership)
ServiceBaseController->loadUser()
in
src/Diplix/KMGBundle/Controller/Service/Api2Controller.php
(line 65)
return false;}protected function parseAndAuth(Request $request){$data = $this->parseRequest($request);$this->loadUser($data['login'],$data['password'],false);// do not detach user -> deprecated and kills further ops which rely on objects with an association with that user (e.g. deviceTokens)return $data;}protected function storeToken(array $req, $source='')
Api2Controller->parseAndAuth()
in
src/Diplix/KMGBundle/Controller/Service/Api2Controller.php
(line 118)
parent::__construct($this->hasher,$this->managerRegistry);}public function indexAction(Request $request){$req = $this->parseAndAuth($request);// auth successful at this point$this->storeToken($req,"indexAction");$res = ['success' => true,'user' => [
in
vendor/symfony/http-kernel/HttpKernel.php
->
indexAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);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 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
Request::setTrustedHosts([$trustedHosts]);}$kernel = new AppKernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 18:03:53 | php |
User Deprecated: Since symfony/http-foundation 5.2: The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "BoShurik\TelegramBotBundle\BoShurikTelegramBotBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "Kreait\Firebase\Symfony\Bundle\FirebaseBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Since symfony/monolog-bridge 6.4: The "Symfony\Bridge\Monolog\Logger" class is deprecated, use HttpKernel's DebugLoggerConfigurator instead. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: The Liip\ImagineBundle\Templating\FilterTrait trait is deprecated since version 2.7 and will be removed in 3.0; use Twig instead. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: The Liip\ImagineBundle\Templating\FilterExtension class is deprecated since version 2.7 and will be removed in 3.0; configure "liip_imagine.twig.mode" to "lazy" instead. {
"exception": {}
}
|
| INFO 18:03:53 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://demo.easytransfer24.de/_profiler/latest?ip=98.82.66.172",
"method": "GET"
}
|
| INFO 18:03:53 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.factory.service" service is deprecated, use "session.storage.factory.native", "session.storage.factory.php_bridge" or "session.storage.factory.mock_file" instead. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.metadata_bag" service is deprecated, create your own "session.storage.factory" instead. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Method "Doctrine\ORM\Query\Filter\SQLFilter::addFilterConstraint()" might add "string" as a native return type declaration in the future. Do the same in child class "Diplix\KMGBundle\Filter\BeDeletedFilter" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 18:03:53 | doctrine |
Connecting with parameters {params} {
"params": {
"driver": "pdo_mysql",
"host": "127.0.0.1",
"port": null,
"dbname": "kwdemo",
"user": "kwdemo",
"password": "<redacted>",
"charset": "UTF8",
"idle_connection_ttl": 600,
"driverOptions": [],
"defaultTableOptions": []
}
}
|
| INFO 18:03:53 | php |
Deprecated: Diplix\KMGBundle\Entity\User implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Class "Diplix\KMGBundle\Entity\User" should implement method "Symfony\Component\Security\Core\User\UserInterface::getUserIdentifier(): string": returns the identifier for this user (e.g. its username or email address). {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Method "Symfony\Component\Security\Core\User\UserInterface::getUsername()" might add "string" as a native return type declaration in the future. Do the same in implementation "Diplix\KMGBundle\Entity\User" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Method "Symfony\Component\Security\Core\User\UserInterface::getSalt()" might add "?string" as a native return type declaration in the future. Do the same in implementation "Diplix\KMGBundle\Entity\User" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Method "Symfony\Component\Security\Core\User\EquatableInterface::isEqualTo()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Diplix\KMGBundle\Entity\User" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Since symfony/http-foundation 5.2: The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead. {
"exception": {}
}
|
| INFO 18:03:53 | php |
User Deprecated: Since symfony/http-foundation 5.2: The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead. {
"exception": {}
}
|
Stack Traces 3
|
[3/3]
AccessDeniedHttpException
|
|---|
Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException:
Ungültige Zugangsdaten.Unable to find an active user object identified by "".
at src/Diplix/KMGBundle/Controller/Service/ServiceBaseController.php:60
at Diplix\KMGBundle\Controller\Service\ServiceBaseController->loadUser()
(src/Diplix/KMGBundle/Controller/Service/Api2Controller.php:65)
at Diplix\KMGBundle\Controller\Service\Api2Controller->parseAndAuth()
(src/Diplix/KMGBundle/Controller/Service/Api2Controller.php:118)
at Diplix\KMGBundle\Controller\Service\Api2Controller->indexAction()
(vendor/symfony/http-kernel/HttpKernel.php:163)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(web/app.php:38)
|
|
[2/3]
RuntimeException
|
|---|
RuntimeException:
Unable to find an active user object identified by "".
at src/Diplix/KMGBundle/Repository/UserRepository.php:311
at Diplix\KMGBundle\Repository\UserRepository->loadUserByUsername()
(src/Diplix/KMGBundle/Controller/Service/ServiceBaseController.php:44)
at Diplix\KMGBundle\Controller\Service\ServiceBaseController->loadUser()
(src/Diplix/KMGBundle/Controller/Service/Api2Controller.php:65)
at Diplix\KMGBundle\Controller\Service\Api2Controller->parseAndAuth()
(src/Diplix/KMGBundle/Controller/Service/Api2Controller.php:118)
at Diplix\KMGBundle\Controller\Service\Api2Controller->indexAction()
(vendor/symfony/http-kernel/HttpKernel.php:163)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(web/app.php:38)
|
|
[1/3]
NoResultException
|
|---|
Doctrine\ORM\NoResultException:
No result was found for query although at least one row was expected.
at vendor/doctrine/orm/src/AbstractQuery.php:1000
at Doctrine\ORM\AbstractQuery->getSingleResult()
(src/Diplix/KMGBundle/Repository/UserRepository.php:301)
at Diplix\KMGBundle\Repository\UserRepository->loadUserByUsername()
(src/Diplix/KMGBundle/Controller/Service/ServiceBaseController.php:44)
at Diplix\KMGBundle\Controller\Service\ServiceBaseController->loadUser()
(src/Diplix/KMGBundle/Controller/Service/Api2Controller.php:65)
at Diplix\KMGBundle\Controller\Service\Api2Controller->parseAndAuth()
(src/Diplix/KMGBundle/Controller/Service/Api2Controller.php:118)
at Diplix\KMGBundle\Controller\Service\Api2Controller->indexAction()
(vendor/symfony/http-kernel/HttpKernel.php:163)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(web/app.php:38)
|