Project

General

Profile

Bug #16745

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

Added by Swapnil Abnave over 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
medium
Triaged:
Bugzilla link:
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`

Associated revisions

Revision ce140802 (diff)
Added by Swapnil Abnave over 4 years ago

Fixes #16745 - environment_id is required to promote CV-version

History

#1 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6362 added

#2 Updated by Swapnil Abnave over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF