microsimulation / ijm

A central place for general issues, documents, scripts and resources for the IJM
https://microsimulation.org/ijm/
MIT License
4 stars 0 forks source link

(Bug) Each time when downloading the PDF version of an article, an error appears in logs #87

Closed astrajescu closed 4 years ago

astrajescu commented 4 years ago

Although on the UI side, the downloading of the PDF version of articles work seamlessly and the site visitor can access the link and respectively the file, on the back-end for each download an error appears in the logs.

The error looks like this:

[2020-08-14 12:23:01] request.INFO: Matched route "download". {"route":"download","route_parameters":{"_controller":"Microsimulation\\Journal\\Controller\\DownloadController::fileAction","uri":"aHR0cDovL3dlYjo4MDgyLzAwMDc0L2lqbS0wMDA3NC5wZGY=","name":"ijm-00074.pdf","_route":"download"},"request_uri":"https://microsimulation.pub/download/aHR0cDovL3dlYjo4MDgyLzAwMDc0L2lqbS0wMDA3NC5wZGY=/ijm-00074.pdf?_hash=%5CWEB-INF%5Cweb.xml","method":"GET"} []
[2020-08-14 12:23:01] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Not a valid signed URI" at /app/src/Controller/DownloadController.php line 18 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Not a valid signed URI at /app/src/Controller/DownloadController.php:18, UnexpectedValueException(code: 0): Not a valid signed URI at /app/src/Helper/DownloadLinkUriGenerator.php:30)
[2020-08-14 12:19:48] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /download/aHR0cDovL3dlYjo4MDgyLzAwMDA4L2lqbS0wMDAwOC5wZGY=" (     from "https://microsimulation.pub/articles/00008")" at /app/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 139 {"exception":"[object] (Symfony\\Component\\HttpKe     rnel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /download/aHR0cDovL3dlYjo4MDgyLzAwMDA4L2lqbS0wMDAwOC5wZGY=\" (from \"https://microsimulation.pub/articles/00008\") at /app/vendor/symf     ony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:139, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0):  at /app/var/cache/journalProdProjectContainerUrl     Matcher.php:154)
magrigor commented 4 years ago

We investigated and discovered what this is not a bug, all of this exceptions was generated by OWASP tool, to identify security vulnerabilities