Cannot apply large sets of errata on errata page because the host search returns a 414
It looks like the request to get a list of hosts with applicable errata from the selected list on the errata page is way too big.
I had a RHEL6.2 box with old packages. I sync'd RHEL 6Server on Katello. This showed 404 installable errata for my RHEL box.
Go to the Errata page, select all 404 errata to apply, click "Apply Errata." This opens a new page on the side to search for all hosts with applicable errata in the list of selected errata. I'm not sure what the threshold for failure is, but if you selected a large number of errata, this hosts search request fails with a 414 "Request-URI Too Long." For instance, I selected all 404 installable errata resulting in a request URI that was 16250 characters long.
Fixes #15376: prevent 414 on errata applicable host list.
We were getting a 414 Request-URI Too Long when attempting to GET
applicable hosts for several errata simultaneously. This commit
updates the call to use a POST so there is no limit on the length
of the errata IDs.