Project

General

Profile

Bug #18264

when adding ~1000 hosts to host group, getting "414 URL too long"

Added by Daniel Lobato Garcia over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Bugzilla link:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1413747
Description of problem:
when adding ~1000 hosts to host group, getting "URL too long"

Version-Release number of selected component (if applicable):
satellite-6.2.6-2.0.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Have Satellite with 1000
(I had slightly below 800, I guess hostname length is what matters)
2. Set Administer -> Settings -> Entries per page to 1000
3. Make sure you have some group in Configure -> Host groups
4. Go to Hosts -> All Hosts and select all hosts (using checkbox
in table header)
5. [Select Action] -> Change Group

Actual results:
Window which appears (which usually shows overview of selected hosts and drop-down menu of groups at the bottom) stays blank.

If you open Firefox's console (other browsers might have something similar) and switch to "Network" tab to see requests your browser does before "[Select Action] -> Change Group" action, you can see that request failed with "414 URL too long" HTTP error

Expected results:
Should work with


Related issues

Related to OpenSCAP - Bug #19059: Assign/Unassign compliance policy to host modal is brokenClosed2017-03-29
Related to Discovery - Bug #19402: bulk delete of discovered hosts does not workClosed2017-04-27

Associated revisions

Revision f82a666d (diff)
Added by Amir Fefer over 3 years ago

Fixes #18264 - change select multiple host actions to POST

When selecting large amount of hosts for bulk action,
url is getting too long and may cause 414 error.
To avoid that, hosts_ids should send via post request
within the body.

Revision bb52a41d (diff)
Added by Dominic Cleal over 3 years ago

refs #18264 - remove text order assumption in response body test

History

#1 Updated by Dominic Cleal over 3 years ago

  • Category set to Web Interface

#2 Updated by Amir Fefer over 3 years ago

  • Assignee set to Amir Fefer

#3 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4381 added

#4 Updated by Amir Fefer over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by The Foreman Bot over 3 years ago

  • Pull request https://github.com/theforeman/foreman/pull/4404 added

#6 Updated by Ondřej Pražák over 3 years ago

  • Related to Bug #19059: Assign/Unassign compliance policy to host modal is broken added

#7 Updated by Ohad Levy over 3 years ago

  • Legacy Backlogs Release (now unused) set to 209

#8 Updated by Ohad Levy over 3 years ago

  • Related to Bug #19402: bulk delete of discovered hosts does not work added

Also available in: Atom PDF