string(3) "hey"
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2793 -statusCode: 404 -headers: [] }
{var_dump('hey'); if (str_contains($baseDir, '..') || str_contains($no, '..') || str_contains($filename, '..')) { throw new NotFoundHttpException(); } elseif (Path::join('/', $baseDir) !== $this->baseDir) { throw new NotFoundHttpException(); }$serverBaseDir = $this->baseDir;$relativePath = Path::join($baseDir, $no, 'pictures', $filename);$fileToServe = Path::join($serverBaseDir, $no, 'pictures', $filename);$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, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null; try { return $response = $this->handleRaw($request, $type); } catch (\Throwable $e) { if ($e instanceof \Error && !$this->handleAllThrowables) { throw $e; }$this->dispatcher->dispatch($event); return $event->getResponse(); } return parent::handle($request, $type, $catch); }}if (!IpUtils::checkIp('127.0.0.1', $trustedProxies)) {Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet()); } try { return $kernel->handle($request, $type, $catch); } finally {// restore global stateRequest::setTrustedProxies($trustedProxies, $trustedHeaderSet); } }protected function forward(Request $request, bool $catch = false, ?Response $entry = null): Response{$this->surrogate?->addSurrogateCapability($request);// always a "master" request (as the real master request can be in cache)$response = SubRequestHandler::handle($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $catch);/* * Support stale-if-error given on Responses or as a config option. * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual * Cache-Control directives) that// avoid that the backend sends no content$subRequest->headers->remove('If-Modified-Since');$subRequest->headers->remove('If-None-Match');$response = $this->forward($subRequest, $catch); if ($response->isCacheable()) {$this->store($request, $response); } } if (null === $entry) {$this->record($request, 'miss'); return $this->fetch($request, $catch); } if (!$this->isFreshEnough($request, $entry)) {$this->record($request, 'stale');$response = $this->fetch($request, $catch); } else {$response = null; do { try {$response = $this->lookup($request, $catch); } catch (CacheWasLockedException) { } } while (null === $response); }// only handle main request inside http cache, because ESI tags are also interpreted as main request. // sub requests are requests, which are forwarded to the kernel inside the php stack // https://github.com/symfony/symfony/issues/51648#issuecomment-1717846894if ($type === HttpKernelInterface::MAIN_REQUEST) {$response = parent::handle($request, $type, $catch); } elseif ($request->attributes->has('_sw_esi')) {$response = parent::handle($request, $type, $catch); } else {$response = $this->getKernel()->handle($request, $type, $catch); } public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response{$this->boot(); return $this->getHttpKernel()->handle($request, $type, $catch); } public function boot(): void{ if (!$this->booted) { ) { } public function run(): int{$response = $this->kernel->handle($this->request); if (Kernel::VERSION_ID >= 60400) {$response->send(false); if (\function_exists('fastcgi_finish_request') && !$this->debug) {$app = $app(...$args);exit($runtime->getRunner($app) ->run());use Shopware\Core\Installer\InstallerKernel;use Shopware\Core\Framework\Adapter\Kernel\KernelFactory;$_SERVER['SCRIPT_FILENAME'] = __FILE__;require_once __DIR__ . '/../vendor/autoload_runtime.php';if (!file_exists(__DIR__ . '/../.env') && !file_exists(__DIR__ . '/../.env.dist') && !file_exists(__DIR__ . '/../.env.local.php')) {$_SERVER['APP_RUNTIME_OPTIONS']['disable_dotenv'] = true;} NotFoundHttpException |
|---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: at custom/plugins/erplugin/src/Features/Pim/PimServeController.php:112 at ErPlugin\Features\Pim\PimServeController->serveImageFile('pim', '0603010601', '0.jpg') (vendor/symfony/http-kernel/HttpKernel.php:183) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:76) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/shopware/core/Framework/Adapter/Kernel/HttpKernel.php:72) at Shopware\Core\Framework\Adapter\Kernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86) at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(HttpKernel), object(Request), 1, true) (vendor/symfony/http-kernel/HttpCache/HttpCache.php:466) at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true) (vendor/symfony/http-kernel/HttpCache/HttpCache.php:443) at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true) (vendor/symfony/http-kernel/HttpCache/HttpCache.php:341) at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true) (vendor/symfony/http-kernel/HttpCache/HttpCache.php:216) at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request), 1, true) (vendor/shopware/core/Framework/Adapter/Kernel/HttpCacheKernel.php:61) at Shopware\Core\Framework\Adapter\Kernel\HttpCacheKernel->handle(object(Request), 1, true) (vendor/shopware/core/Kernel.php:129) at Shopware\Core\Kernel->handle(object(Request)) (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:32) at require_once('/var/www/html/vendor/autoload_runtime.php') (public/index.php:10) |