Unable to view filtered errata to add to a content view
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1346428
Description of problem:
When trying to add errata to a content view through a filter, you are unable to see the errata. Upon opening the browser's console, you can see that there as a 500 ISE for the GET request.
Version-Release number of selected component (if applicable):
Satellite 6.2 Beta Snap 15.2
Steps to Reproduce:
1. Create a content view with at least one repository hosting errata.
2. Create a new errata filter.
3. Go to add tab (if not already presented with the errata add view)
No errata seen. Instead a constant loading icon is shown, also a 500 ISE is present in the web console. See attached screenshot and foreman debug output.
The errata is visible and no errors are shown in the web console.
fixes #15557 - errata: flatten array containing errata uuids
This commit is to address the following error observed on production
installations when viewing the list of errata to add to a content
view errata filter:
2016-06-30 12:43:15 [app] [E] PG::Error: ERROR: syntax error at
or near "," | LINE 1: ...7,11,12,10,8,6))) AND "katello_errata"."uuid" IN | (, , 'a02aa... | ^
The error is due to how the list of UUIDs was generated.
Before, the list may look like:
"9524f7e7-2a1e-4eb1-aa5c-8d418caf000a"], , ]
After, the list would look like: