Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ AccessDeniedHttpException
{
$data = $request->request->all();
}
else
{
throw new AccessDeniedHttpException("Falscher Content-Type (".$contentType.")");
}
if ((!array_key_exists("login",$data))||(!array_key_exists("password",$data)))
{
throw new AccessDeniedHttpException("Fehlende Zugangsdaten.");
}
ServiceBaseController->parseRequest()
in
src/Diplix/KMGBundle/Controller/Service/Api2Controller.php
(line 62)
}
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;
}
Api2Controller->parseAndAuth()
in
src/Diplix/KMGBundle/Controller/Service/Api2Controller.php
(line 189)
]);
}
public function ordersAction(Request $request)
{
$req = $this->parseAndAuth($request);
// get filters owned orders
$filterStatus = array_key_exists('status',$req) ? $req['status'] : 0;
$from = (new \DateTime())->sub(new \DateInterval('P3M'));
$to = (new \DateTime())->add(new \DateInterval('P3M'));
$from = array_key_exists('from',$req) ? new \DateTime($req['from']) : $from ;
in
vendor/symfony/http-kernel/HttpKernel.php
->
ordersAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$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 19:06:29 | 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 19:06:29 | 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 19:06:29 | 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 19:06:29 | php |
User Deprecated: Since symfony/monolog-bridge 6.4: The "Symfony\Bridge\Monolog\Logger" class is deprecated, use HttpKernel's DebugLoggerConfigurator instead. { "exception": {} } |
INFO 19:06:29 | 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 19:06:29 | 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 19:06:29 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "92474a" }, "request_uri": "https://demo.easytransfer24.de/_profiler/92474a?panel=exception", "method": "GET" } |
INFO 19:06:29 | 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 19:06:29 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead. { "exception": {} } |
INFO 19:06:29 | 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 19:06:29 | 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 19:06:29 | 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 19:06:29 | 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 19:06:29 | 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 19:06:29 | 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 19:06:29 | 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 19:06:29 | 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 19:06:30 | 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 19:06:30 | 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 Trace
AccessDeniedHttpException
|
---|
Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: Falscher Content-Type () at src/Diplix/KMGBundle/Controller/Service/ServiceBaseController.php:82 at Diplix\KMGBundle\Controller\Service\ServiceBaseController->parseRequest() (src/Diplix/KMGBundle/Controller/Service/Api2Controller.php:62) at Diplix\KMGBundle\Controller\Service\Api2Controller->parseAndAuth() (src/Diplix/KMGBundle/Controller/Service/Api2Controller.php:189) at Diplix\KMGBundle\Controller\Service\Api2Controller->ordersAction() (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) |