Project

General

Profile

Actions

Bug #815

closed

Redirect to login page when editing multiple hosts

Added by Eric Shamow over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

815.patch 815.patch 27.2 KB Ohad Levy, 04/22/2011 04:13 PM

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #684: toggle selection is broken on hosts pageClosedOhad Levy02/23/2011Actions
Actions #1

Updated by Eric Shamow over 13 years ago

Meant to note -- this is running behind Passenger.

Actions #2

Updated by Ohad Levy over 13 years ago

  • Assignee set to Bash Shell
  • Target version set to 0.3
Actions #3

Updated by Ohad Levy over 13 years ago

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.

Actions #4

Updated by Ohad Levy over 13 years ago

  • Status changed from New to Ready For Testing
  • % Done changed from 0 to 100
Actions #5

Updated by Ohad Levy over 13 years ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Bash Shell over 13 years ago

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 )

Actions #7

Updated by Ohad Levy over 13 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

Actions

Also available in: Atom PDF