Content View publish task fails with an error - "Could not find the following content units: ['....']" - when filter is applied

Solution Verified - Updated -

Issue

  • Publishing a Content View with a filter fails with the following error:

    Error message: the server returns an error
    HTTP status code: 400
    Response headers: {"Date"=>"Fri, 17 Feb 2023 14:40:33 GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"POST, OPTIONS", "X- Frame-Options"=>"DENY", "Content-Length"=>"124", "X-Content-Type-Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Correlation-ID"=>"6exxxxxx-xxxx- xxxx-xxxx- xxxxxxxxx51d", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 satellite.example.com", "Connection"=>"close"}
    Response body: ["Could not find the following content units: ['/pulp/api/v3/content/rpm/modulemds/08xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx0b2/']"]
    
  • With Response body talking about advisories instead of modulemds:

    Response body: ["Could not find the following content units: ['/pulp/api/v3/content/rpm/advisories/0e8733b7-604d-4885-b271-c1e8d768adda/', '/pulp/api/v3/content/rpm/advisories/39efca1f-4ccb-4526-9edd-16b367b30322/', ..]"]
    
  • With Response body talking about packages.

    Response body: ["Could not find the following content units: ['/pulp/api/v3/content/rpm/packages/2xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx0b2/']"]} 
    

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content