Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
New Routing: breaks Apache Aliases (module #1023
I use apache aliases in Simplesamlphp to allow easier access to my custom module.
Steps to reproduce the behavior:
SimpleSAML\Error\NotFound: The requested page 'http://localhost/login.php' could not be found. The URL must at least contain a module name followed by a slash.
In the past this used to just show the authenticate page.
A clear and concise description of what you expected to happen.
When you look in the logs, you see that login.php page is in the front, normally it should not be part of the path and it replaced module.php.
Screenshots or logs
I use php7.1-fpm
If it is possible to use the routing directly, the aliases would no longer be necessary.
I understand you want to move forward and I will use your redirect in the meantime, but I will probably end up fixing it in the coming months. Could you please provide me some hint where I can start looking.
Also I was wondering why you did not go for full routing or is this something you plan for in the future.
Right now the functionality is limited to routing for modules and a showcase was added in the new admin module. It will be implemented for all modules in 1.18 (or 2.0, not sure what we agreed upon)
Just to let you know, I patched it in my own version to use PATH_INFO instead of request.
I don't think this is a good solution, but it seems to work.
We just upgraded to simplesaml v1.17.1 and had the same issue.
Before we could use
Now we use
We had to use the [P] option because we have a service provider which for some reason failed when redirecting.
Hope it helps
@klausdk thank you for feedback.
I tried to implement it, but I am afraid it does not work in my use case.
We are using proxy:fcgi
Note: Modules are loaded.
I wonder if the problem can be solved in the cas.php file instead.
It excepts PATH_INFO to contain url.php and not /url.php
Maybe it will help to do this change :