[Satellite 6.2] Katello API : POST /katello/api/v2/content_view_versions/:id/promote throws undesired exceptions
Issue
-
Promoting content_view_version using Katello API, responds with an error.
-
As per Katello API documentation for Satellite 6.2 following is the expected API to promote a content_view version:
POST /katello/api/v2/content_view_versions/:id/promote
This API can respond with any one of the following errors:
1. "{u'displayMessage': u"Validation failed: Label can't be blank, Label can't be blank, Name can't be blank, Name cannot be blank", u'errors': {u'name': [u"can't be blank", u'cannot be blank'], u'label': [u"can't be blank", u"can't be blank"]}}
2. {"displayMessage":"undefined method `promotable_or_removable?' for nil:NilClass","errors":["undefined method `promotable_or_removable?' for nil:NilClass"]}
Environment
- Red Hat Satellite 6.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
