Project

General

Profile

Actions

Bug #16745

closed

Katello API : POST /katello/api/v2/content_view_versions/:id/promote results in NoMethodError

Added by Swapnil Abnave over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF