Bug #815
closed
Redirect to login page when editing multiple hosts
Added by Eric Shamow over 13 years ago.
Updated over 13 years ago.
Description
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
Files
Meant to note -- this is running behind Passenger.
- Assignee set to Bash Shell
- Target version set to 0.3
so, inspired by ahuman patch, attached is my own.
this converts the entire selection to javascript, and remove the old dependency upon AJAX.
its still not complete, but 99% of the functionality should already be included, would be great if you could give it a try.
- Status changed from New to Ready For Testing
- % Done changed from 0 to 100
- Status changed from Ready For Testing to Closed
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 )
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
Also available in: Atom
PDF