when adding ~1000 hosts to host group, getting "414 URL too long"
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):
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
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
Should work with
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.