It has been about 18 months since I reported this as a problem on the original forums, and still looking to find an answer to this in some way. I did find and make some modifications to the SES interceptor, that seemed to work some but causes more problems further into the framework.
The problem is that when you do an event, or reroute in the SES interceptor, there is no way that the virtual directory of the URL is preserved. This has been a major headache for me on one application that looks like ColdBox will never be converted for, which is a shame because I had hoped to prove it a good investment going forward.
Is this going to be something that can be fixed, looked at or even addressed soon?
Here is the problem with the security interceptor, if one has a directory like this.
http://www.somedomainname.com/virtualDirectory1
And this entire thing is secured then one would use the security rules of something like
login.*
^
login.dspLogin
Now this actually works to some degree, but the problem here is that the user is redirected to the URL minus the virtual directory. And this is not acceptable, especially when the login is reliant on the name of the virtual directory to name the application. Which in this case will result in the user never ever being able to log into the application.
I have spent a good 18 months trying to solve this problem, and have not found an answer that will work in any way shape or form.
Luis, we have spoken about this on the forums. To the point were it almost worked. Because I could do something like this.
^(\w*).login.*
^(\w*)
login.dspLogin
But the problem again is that the redirection doesn’t inherit or can’t use pattern matching in anyway shape or form. I hope this makes sense and Luis if you need me to zip up the code that I have to send to you for testing I would be more than willing.
But I am afraid time is running out, I was hoping to have this application converted into ColdBox 3 by the end of this week. For a reason that I can’t discuss in any public area, but let me say that it was extremely important that this scenario work.
One can also mimic the use of virtual directories in ColdBox by running with their roues with something like this.
addRoute(pattern=":virtualDirectoryName/:handler?/:action?");
And as I can see this is something that as Luis suggested on the forums is open to a lot of matches, and that is correct in this example it is and must be open in that manner for this application.
Luis is there anything that can be done about this, if there is more you need from me to help in fixing this I am more than willing too as well.
Regards,
Andrew Scott