vaizard / glued-skeleton-modular

Web application skeleton that uses the Slim4 Framework, PHP-DI, Nyholm PSR7 and Twig.
MIT License
1 stars 4 forks source link

Cannot open file by specifying its name #41

Closed zelitomas closed 3 years ago

zelitomas commented 4 years ago

URL: /stor/get/1/filename Stack trace:

Whoops\Exception\ErrorException thrown with message "readfile(/584e30879f4324368a68da1649bdd1c31b1392e35824ae7d97250dd7c26fb04ed1bff95cae2c23a79264f1359ec7a7d2706eac62e3d6c11dc11f998ffa4b28a8): failed to open stream: No such file or directory"

Stacktrace:
#46 Whoops\Exception\ErrorException in /var/www/glued-skeleton/glued/Stor/Controllers/StorController.php:372
#45 readfile in /var/www/glued-skeleton/glued/Stor/Controllers/StorController.php:372
#44 Glued\Stor\Controllers\StorController:serveFile in /var/www/glued-skeleton/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php:43
#43 Slim\Handlers\Strategies\RequestResponse:__invoke in /var/www/glued-skeleton/vendor/slim/slim/Slim/Routing/Route.php:381
#42 Slim\Routing\Route:handle in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:81
#41 Slim\MiddlewareDispatcher:handle in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:81
#40 Slim\MiddlewareDispatcher:handle in /var/www/glued-skeleton/vendor/slim/slim/Slim/Routing/Route.php:341
#39 Slim\Routing\Route:run in /var/www/glued-skeleton/vendor/slim/slim/Slim/Routing/RouteRunner.php:84
#38 Slim\Routing\RouteRunner:handle in /var/www/glued-skeleton/vendor/slim/twig-view/src/TwigMiddleware.php:125
#37 Slim\Views\TwigMiddleware:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:140
#36 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be746fe6:handle in /var/www/glued-skeleton/glued/Core/Middleware/TranslatorMiddleware.php:53
#35 Glued\Core\Middleware\TranslatorMiddleware:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:188
#34 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be747f4f:handle in /var/www/glued-skeleton/glued/Core/Middleware/LocaleSessionMiddleware.php:26
#33 Glued\Core\Middleware\LocaleSessionMiddleware:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:188
#32 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be747f4f:handle in /var/www/glued-skeleton/glued/Core/Middleware/Timer.php:15
#31 Glued\Core\Middleware\Timer:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:188
#30 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be747f4f:handle in /var/www/glued-skeleton/vendor/slim/slim/Slim/Middleware/BodyParsingMiddleware.php:66
#29 Slim\Middleware\BodyParsingMiddleware:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:140
#28 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be746fe6:handle in /var/www/glued-skeleton/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php:60
#27 Slim\Middleware\RoutingMiddleware:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:140
#26 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be746fe6:handle in /var/www/glued-skeleton/vendor/middlewares/trailing-slash/src/TrailingSlash.php:57
#25 Middlewares\TrailingSlash:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:140
#24 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be746fe6:handle in /var/www/glued-skeleton/glued/Core/Middleware/ValidationFormsMiddleware.php:26
#23 Glued\Core\Middleware\ValidationFormsMiddleware:__invoke in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:188
#22 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be747f4f:handle in /var/www/glued-skeleton/glued/Core/Middleware/TwigFlashMiddleware.php:17
#21 Glued\Core\Middleware\TwigFlashMiddleware:__invoke in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:283
#20 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be7483c8:handle in /var/www/glued-skeleton/vendor/middlewares/csp/src/Csp.php:53
#19 Middlewares\Csp:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:140
#18 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be746fe6:handle in /var/www/glued-skeleton/glued/Core/Middleware/TwigCspMiddleware.php:28
#17 Glued\Core\Middleware\TwigCspMiddleware:__invoke in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:283
#16 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be7483c8:handle in /var/www/glued-skeleton/vendor/tuupola/cors-middleware/src/CorsMiddleware.php:113
#15 Tuupola\Middleware\CorsMiddleware:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:140
#14 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be746fe6:handle in /var/www/glued-skeleton/glued/Core/Middleware/HeadersMiddleware.php:24
#13 Glued\Core\Middleware\HeadersMiddleware:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:140
#12 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be746fe6:handle in /var/www/glued-skeleton/glued/Core/Middleware/AuthorizationMiddleware.php:27
#11 Glued\Core\Middleware\AuthorizationMiddleware:__invoke in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:283
#10 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be7483c8:handle in /var/www/glued-skeleton/glued/Core/Middleware/SessionMiddleware.php:44
#9 Glued\Core\Middleware\SessionMiddleware:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:140
#8 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be746fe6:handle in /var/www/glued-skeleton/vendor/slim/slim/Slim/Middleware/MethodOverrideMiddleware.php:46
#7 Slim\Middleware\MethodOverrideMiddleware:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:140
#6 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be746fe6:handle in /var/www/glued-skeleton/vendor/zeuxisoo/slim-whoops/src/Zeuxisoo/Whoops/Slim/WhoopsMiddleware.php:40
#5 Zeuxisoo\Whoops\Slim\WhoopsMiddleware:process in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:140
#4 class@anonymous�/var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php0x7f25be746fe6:handle in /var/www/glued-skeleton/vendor/slim/slim/Slim/MiddlewareDispatcher.php:81
#3 Slim\MiddlewareDispatcher:handle in /var/www/glued-skeleton/vendor/slim/slim/Slim/App.php:215
#2 Slim\App:handle in /var/www/glued-skeleton/vendor/slim/slim/Slim/App.php:199
#1 Slim\App:run in /var/www/glued-skeleton/glued/bootstrap.php:35
#0 require_once in /var/www/glued-skeleton/public/index.php:3
killua-eu commented 4 years ago

OK, so this was actually caused by incorrect c_sha512 definition in t_stor_objects ... next commit should fix this, add some prelim sql table definitions work on resetting passwords, logging and adding calendar objects. Hopefully I managed not to fuck up the migration.

killua-eu commented 4 years ago

@zelitomas , can you kindly run

git pull origin master
composer update

and retry http://127.0.0.1/stor/browser?filter=/worklog/1

killua-eu commented 3 years ago

Closing due to inactivity.