Exceptions
Exception
Exception
$message = "L'adresse IP est bannie mais fait une tentative d'accès : $ip, URI : {$event->getRequest()->getRequestUri()}.";
// LG 20241023 fin
$this->log($message) ;
// Terminer en erreur
throw new \Exception($this->getMsg($ip)) ;
}
// Si on arrive jusque là, le traitement normal va se poursuivre
return ;
}
if (false === $controller = $this->resolver->getController($request)) {
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
}
$event = new FilterControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
*/
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) {
$request->headers->set('X-Php-Ob-Level', 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) {
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
// // LG 20220802 pour tests
// if (file_exists("/home/luc/partage_win10/Poubelle/")) {
// $jsonfile = "/home/luc/partage_win10/Poubelle/comparePasswords.txt";
// } else if (file_exists("/var/www/html/PAA/Recette/var/log/")) {
Stack Trace
Exception |
---|
Exception: Désolé, l'adresse IP que vous utilisez (138.68.82.23) a été bannie pour cette application en raison d'un trop grand nombre de tentatives infructueuses. Merci de demander à un administrateur de vous aider à rétablir la situation. at src/Event/ForceBruteListener.php:169 at App\Event\ForceBruteListener->onKernelController() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:108) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:203) at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() (vendor/symfony/event-dispatcher/EventDispatcher.php:43) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:135) 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:65) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:190) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:28) at require_once('/var/www/html/PAA/Recette/public/index.php') (public/app.php:5) |