Bug #6970
closedContent Host : bulk actions are broken
Description
There appear to be a couple of issues in the content host bulk actions. The issues are regressions from recent changes.
The first issue is:
1. go to Hosts -> Content Hosts
2. select one or more hosts from the list
3. click 'Bulk Actions'
4. click 'Unregister Content Hosts'
Observe error indicating: "You are not authorized to perform this action."
Note: a similar error can occur for any bulk action that hits the systems_bulk_actions_controller
Once the first issue is solved:
1. go to Hosts -> Content Hosts
2. select one or more hosts from the list
3. click 'Bulk Actions'
4. click 'Errata'
Observe error in log indicating:
Completed 400 Bad Request in 91.2ms (Views: 0.5ms | ActiveRecord: 1.3ms)
With body: {"displayMessage":"Cannot sort by 'name'","errors":["Cannot sort by 'name'"]}