Redirect to login page when editing multiple hosts
In Foreman 0.2 final, when editing multiple hosts in the Hosts view, upon clicking submit the user is returned to the login screen.
Per ohadlevy in #theforeman:
it seems to be related to the fact that the ajax request doesnt contain the authentication_id, which probably happened when we upgraded rails
but I wanted to change the logic from ajax to store the selected hosts in a cookie instead
as the current implementation is not that solid
fixes #815 - Redirect to login page when editing multiple hosts
removing the buggy AJAX implementation.
#3 Updated by Ohad Levy over 9 years ago
so, inspired by ahuman patch, attached is my own.
its still not complete, but 99% of the functionality should already be included, would be great if you could give it a try.
#7 Updated by Ohad Levy over 9 years ago
Bash Shell wrote:
Nice .. I don't know when I will actually get to try this, but I was wondering if this works if you select a large number of hosts? ( say several hundred )
as the cookie only saves the ids of a host, then I would assume our limit is about 1k hosts