I am in the process of updating our SimpleSAMLphp-based app to use version 2, and currently at the stage of migrating to Twig templates. After discovering that the `usenewui` config param needs to be added and set to `true`, I started seeing this exception:
SimpleSAML\Error\Error: UNHANDLEDEXCEPTION<br>Backtrace:
1 www/_include.php:17 (SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: RuntimeException: Unable to create the "logs" directory (vendor/simplesamlphp/simplesamlphp//log/).
Backtrace:
5 vendor/symfony/http-kernel/Kernel.php:686 (Symfony\Component\HttpKernel\Kernel::buildContainer)
4 vendor/symfony/http-kernel/Kernel.php:593 (Symfony\Component\HttpKernel\Kernel::initializeContainer)
3 vendor/symfony/http-kernel/Kernel.php:136 (Symfony\Component\HttpKernel\Kernel::boot)
2 vendor/symfony/http-kernel/Kernel.php:196 (Symfony\Component\HttpKernel\Kernel::handle)
1 lib/SimpleSAML/Module.php:198 (SimpleSAML\Module::process)
0 www/module.php:10 (N/A)
Manually creating the `log` directory bypasses this problem, but it makes me wonder why this is necessary. It's also worth noting that nothing appears to be writing to that directory. We are installing SimpleSAMLphp using composer and and running inside a Docker container, with the image build executed as root. Thus, the vendor folder and contents are all owned by root. Should I just create the `log` directory in our Dockerfile or is there a way to disable the code that creates the `log directory?
Thanks!
Steve