Skip Menu |

This queue is for tickets about the Dancer2-Plugin-Auth-YARBAC CPAN distribution.

Report information
The Basics
Id: 112376
Status: new
Priority: 0/
Queue: Dancer2-Plugin-Auth-YARBAC

People
Owner: Nobody in particular
Requestors: ddjones [...] riddlemaster.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.011
Fixed in: (no value)



Subject: Project name duplicated in URL
I'm seeing some weird behavior on redirection following login. I have a website running via Apache fcgi. The url is "www.mydomain.org/myproject". hook_before_require_login is configured. I have a login form on my home page, so after_logout, after_login and login_denied are all set to '/'. If I go to the login (home) page and login, everything works fine. But if I go to a specific route and am not logged in, things get weird. Let's say I go to www.mydomain.org/myproject/route1. I get redirected to the home page as I should. From there, I can login. But immediately upon login, I get redirected to www.mydomain.org/myproject/myproject/route1. The project name is doubled up in the URL. I have not been able to find any reason for this. I do not have after_login or any other config I can find set to '/myproject.' The only place 'myproject' appears in the yml file is in the name of the log file. I tried creating a route to '/myproject/**' and redirecting it to '/' as a workaround and it is not called. If I manually enter www.mydomain.org/myproject/myproject/whatever in the URL bar, I instantly get redirect to www.mydomain.org/myproject as I should, so that route is working. But if I try to go to a route without being logged in, I end up at the doubled-up URL after logging in and am not redirected. I'm not sure if this is an issue with YARBAC, with Dancer2 or with my config. I'm using YARBAC::Provider::Database and runnning under Perl 5.14.2. I'll be happy to provide any other information you need if you have any ideas what may be causing this.