Bug #14280
closedSatellite fails to propagate incremental updates to Composite Content views
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1288148
Description of problem:
Customer is using the API to update puppet modules within a content view.
When attempting to update a composite content view with "propagate_all_composites":true set the API throws the error
{"displayMessage":"undefined local variable or method `version' for #<Katello::Api::V2::ContentViewVersionsController:0x0000000f0097b8>","errors":["undefined local variable or method `version' for #<Katello::Api::V2::ContentViewVersionsController:0x0000000f0097b8>"]}[root@nyclxrndsat6 tmp]#
Version-Release number of selected component (if applicable):
6.1.4
How reproducible:
100%
Steps to Reproduce:
1. Using curl, fire an update request at the API
curl -k -H "Content-Type: application/json" -X POST -d '{"description":"Testing incrementel update", "add_content":{"puppet_module_ids":["ae9a384e-e17b-458b-ac54-9868eee69d7a"]}, "propagate_all_composites":true, "content_view_version_environments":[{"environment_ids":["2","3","4"],"content_view_version_id":70}]}' -u 'admin:password' https://satellite.example.com/katello/api/content_view_versions/incremental_update
Actual results:
For a simple content view this work.
For a composite content view this throws the error
{"displayMessage":"undefined local variable or method `version' for #<Katello::Api::V2::ContentViewVersionsController:0x0000000f0097b8>","errors":["undefined local variable or method `version' for #<Katello::Api::V2::ContentViewVersionsController:0x0000000f0097b8>"]}[root@nyclxrndsat6 tmp]#
Expected results:
CCV is updated with the new puppet module.
Additional info: