You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When setting admin_panel_host to a host name, the Admin Panel is not usable anymore (the browser is at the site set in admin_panel_host, of course).
This seems to be because of the empty($aPaths[0]) condition in RainLoop/Service.php:92. If it is true (i.e. if there is any string between the ? and & or end in the URL), and admin_panel_host is set, $bAdmin will never be true, even though the request came with the hostname set in admin_panel_host. Then, any API calls to e.g. ?Json will use the default Actions (instead of AdminActions), which causes problems because the client assumes it is talking to the AdminActions.
Additionally, adding any query string which is not an action shows the regular login window, instead of the Admin Panel login window, even though the host name is the admin_panel_host.
To Reproduce
Steps to reproduce the behavior:
Set a host name for admin_panel_host in the configuration
Go to the host set in admin_panel_host
Try to log in to the Admin Panel
"Unknown error" will be shown as an error message, because DoAdminLogin does not exist in the erroneously used Actions class
Additional context
This is not a completely vanilla (i.e. new, non-configured) instance, so there might be a small chance something I changed caused this problem to happen.
Proposed solution
Removing empty($aPaths[0]) && at RainLoop/Service.php:92 seems to be the best solution, if there aren't any problems that might appear by doing this.
Other than that, great software, and thank you for continuing RainLoop :)
The text was updated successfully, but these errors were encountered:
Describe the bug
When setting admin_panel_host to a host name, the Admin Panel is not usable anymore (the browser is at the site set in admin_panel_host, of course).
This seems to be because of the
empty($aPaths[0])
condition in RainLoop/Service.php:92. If it is true (i.e. if there is any string between the?
and&
or end in the URL), and admin_panel_host is set,$bAdmin
will never be true, even though the request came with the hostname set in admin_panel_host. Then, any API calls to e.g.?Json
will use the defaultActions
(instead ofAdminActions
), which causes problems because the client assumes it is talking to theAdminActions
.Additionally, adding any query string which is not an action shows the regular login window, instead of the Admin Panel login window, even though the host name is the admin_panel_host.
To Reproduce
Steps to reproduce the behavior:
DoAdminLogin
does not exist in the erroneously used Actions classExpected behavior
Admin Panel works.
Please complete the following information:
Debug/logging information
Additional context
This is not a completely vanilla (i.e. new, non-configured) instance, so there might be a small chance something I changed caused this problem to happen.
Proposed solution
Removing
empty($aPaths[0]) &&
at RainLoop/Service.php:92 seems to be the best solution, if there aren't any problems that might appear by doing this.Other than that, great software, and thank you for continuing RainLoop :)
The text was updated successfully, but these errors were encountered: