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:
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Brad Buckingham
- Pull request https://github.com/Katello/katello/pull/5900 added
Updated by Brad Buckingham over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|4e9972bc849f232daf1b7d60c0e9d3b7f46fc862.
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release set to 86