Exceptions
Exception
Symfony\Component\HttpFoundation\File\Exception\ FileNotFoundException
in
vendor/symfony/http-foundation/File/File.php
(line 36)
* @throws FileNotFoundException If the given path is not a file*/public function __construct(string $path, bool $checkPath = true){if ($checkPath && !is_file($path)) {throw new FileNotFoundException($path);}parent::__construct($path);}
* @return string*/public function getFilename(){if (!$this->filename) {$file = new File($this->getPath());$this->filename = $file->getFileName();}return $this->filename;}
{$response = new Response();$disposition = $response->headers->makeDisposition($inline ? ResponseHeaderBag::DISPOSITION_INLINE : ResponseHeaderBag::DISPOSITION_ATTACHMENT,$this->getFilename().".pdf",iconv('utf-8', 'us-ascii//TRANSLIT', $this->getFilename()));$response->headers->set('Content-Disposition', $disposition);$response->headers->set('Content-Type', $this->getMimeType());
// check Download Permissions$restrict_date = new \DateTime('today -6 months');if ($date < $restrict_date) {// Archiv-Zeitschriften (älter als 6 Monate) immer erlaubtreturn $pdf->createResponse(true);}$user = $this->getUser();if (!$user) {throw $this->createAccessDeniedException();
in
vendor/symfony/http-kernel/HttpKernel.php
->
downloadAction
(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;}}
}// Symfony Kernel starten$kernel = new Kernel($env, $debug);$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 14:20:46 | deprecation |
User Deprecated: Since symfony/monolog-bridge 6.4: The "Symfony\Bridge\Monolog\Logger" class is deprecated, use HttpKernel's DebugLoggerConfigurator instead. {
"exception": {}
}
|
| INFO 14:20:46 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "43b3f2"
},
"request_uri": "https://unipoll.de/_profiler/43b3f2",
"method": "GET"
}
|
Stack Trace
|
FileNotFoundException
|
|---|
Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException:
The file "/var/www/juridicus/src/JuridicusBundle/Entity/../../../../app/files/pdf/za/ZA 02-2012.pdf" does not exist
at vendor/symfony/http-foundation/File/File.php:36
at Symfony\Component\HttpFoundation\File\File->__construct()
(src/JuridicusBundle/Entity/Pdf.php:94)
at JF\JuridicusBundle\Entity\Pdf->getFilename()
(src/JuridicusBundle/Entity/Pdf.php:225)
at JF\JuridicusBundle\Entity\Pdf->createResponse()
(src/JuridicusBundle/Controller/ZAController.php:376)
at JF\JuridicusBundle\Controller\ZAController->downloadAction()
(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()
(public/index.php:28)
|