Actions
Bug #16745
closedKatello API : POST /katello/api/v2/content_view_versions/:id/promote results in NoMethodError
Difficulty:
medium
Triaged:
Bugzilla link:
Pull request:
Description
Description of problem:
Promoting content_view version using Katello API, responds with following error.
{"displayMessage":"undefined method `promotable_or_removable?' for nil:NilClass","errors":["undefined method `promotable_or_removable?' for nil:NilClass"]}
Error from console:
NoMethodError: undefined method `promotable_or_removable?' for nil:NilClass
Actual results:
Gives a 500(Error) response
Expected results:
Should give a 200(success) response
--
API to promote content view : The environment_id needs to be `required` instead of `optional`
Actions