Redirect 301 redirect from GET @owsproxy3_core_owsproxy_entrypoint (add8ef)

Error 400 Bad Request

GET https://schulung.foss.academy/mapbender/owsproxy/

Forwarded to ErrorController (f030e8)

Exceptions

Missing host name

Exceptions 2

Symfony\Component\HttpKernel\Exception\ BadRequestHttpException

Show exception properties
Symfony\Component\HttpKernel\Exception\BadRequestHttpException {#398
  -statusCode: 400
  -headers: []
}
  1.         try {
  2.             $proxy_query ProxyQuery::createFromRequest($request'url');
  3.             $this->signer->checkSignedUrl($url);
  4.         } catch (\InvalidArgumentException $e) {
  5.             throw new BadRequestHttpException($e->getMessage(), $e);
  6.         } catch (\Mapbender\CoreBundle\Component\Exception\ProxySignatureException $e) {
  7.             throw new AccessDeniedHttpException($e->getMessage(), $e);
  8.         }
  9.         return $this->getQueryResponse($proxy_query$request);
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> entryPointAction (line 181)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/data/mapbender/application/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

InvalidArgumentException

Missing host name

  1.      */
  2.     private function __construct($url$content$headers)
  3.     {
  4.         $parts parse_url($url);
  5.         if (empty($parts["host"])) {
  6.             throw new \InvalidArgumentException("Missing host name");
  7.         }
  8.         $this->headers array_replace($headers, array(
  9.             'Host' => $parts['host'],
  10.         ));
  11.         $this->url $url;
  1.      */
  2.     public static function createGet($url$headers = array())
  3.     {
  4.         // strip fragment and trailing query param separators
  5.         $url rtrim(preg_replace('/#.*$/'''$url), '&?');
  6.         return new static($urlnull$headers);
  7.     }
  8.     /**
  9.      * Factory method for ProxyQuery instances appropriate for POST request.
  10.      * NOTE: DOES NOT deduplicate query params. Use Utils method if you need help
  1.         $url Utils::filterDuplicateQueryParams($urlfalse);
  2.         $headers Utils::getHeadersFromRequest($request);
  3.         if ($request->getMethod() === 'POST') {
  4.             return static::createPost($url$request->getContent(), $headers);
  5.         } else {
  6.             return static::createGet($url$headers);
  7.         }
  8.     }
  9.     /**
  10.      * @param string $url
  1.     public function entryPointAction(Request $request)
  2.     {
  3.         $url $request->query->get('url');
  4.         try {
  5.             $proxy_query ProxyQuery::createFromRequest($request'url');
  6.             $this->signer->checkSignedUrl($url);
  7.         } catch (\InvalidArgumentException $e) {
  8.             throw new BadRequestHttpException($e->getMessage(), $e);
  9.         } catch (\Mapbender\CoreBundle\Component\Exception\ProxySignatureException $e) {
  10.             throw new AccessDeniedHttpException($e->getMessage(), $e);
in vendor/symfony/http-kernel/HttpKernel.php -> entryPointAction (line 181)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/data/mapbender/application/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 01:22:46 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://schulung.foss.academy/mapbender/_profiler/latest?ip=66.249.70.161&type=request",
    "method": "GET"
}

Stack Traces 2

[2/2] BadRequestHttpException
Symfony\Component\HttpKernel\Exception\BadRequestHttpException:
Missing host name

  at mapbender/src/OwsProxy3/CoreBundle/Controller/OwsProxyController.php:41
  at OwsProxy3\CoreBundle\Controller\OwsProxyController->entryPointAction()
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/data/mapbender/application/vendor/autoload_runtime.php')
     (public/index.php:5)                
[1/2] InvalidArgumentException
InvalidArgumentException:
Missing host name

  at mapbender/src/OwsProxy3/CoreBundle/Component/ProxyQuery.php:101
  at OwsProxy3\CoreBundle\Component\ProxyQuery->__construct()
     (mapbender/src/OwsProxy3/CoreBundle/Component/ProxyQuery.php:38)
  at OwsProxy3\CoreBundle\Component\ProxyQuery::createGet()
     (mapbender/src/OwsProxy3/CoreBundle/Component/ProxyQuery.php:87)
  at OwsProxy3\CoreBundle\Component\ProxyQuery::createFromRequest()
     (mapbender/src/OwsProxy3/CoreBundle/Controller/OwsProxyController.php:38)
  at OwsProxy3\CoreBundle\Controller\OwsProxyController->entryPointAction()
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/data/mapbender/application/vendor/autoload_runtime.php')
     (public/index.php:5)