Project

General

Profile

Actions

Bug #23458

closed

content_view_versions is not showing correct data for composite_content_view_id

Added by Thomas McKay over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1573193

We are trying to delete one specific version of one CV from foreman.
The version ID is 234.
We expect the call
"""
https://server.example.com/katello/api/content_view_versions/234
"""
To show an array of composite content view in "composite_content_view_ids", for the CCV using this CV.

Here the code
"""
  1. curl -X GET -k -u admin:xxx -H "Accept: application/xml" https://server.example.com:443/katello/api/content_view_versions/234 {"version":"16.0","major":16,"minor":0,"composite_content_view_ids":[],"content_view_id":5,
    ""
Upon deletion,
  1. curl -X DELETE -k -u admin:xxx -H "Accept: application/xml" https://server.example.com:443/katello/api/content_view_versions/234 {"displayMessage":"Cannot delete version while it is in use by composite content views: RHEL7_Rolling_Capsule Version 10.0,RHEL7_Rolling Version 13.0","errors":["Cannot delete version while it is in use by composite content views: RHEL7_Rolling_Capsule Version 10.0,RHEL7_Rolling Version 13.0"]}

========

Is the creation of the composite_content_view_id array bugged or are we missing something?


Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #25143: composite_content_view_ids field of a content_view_version is always emptyClosedAndrew KofinkActions
Actions

Also available in: Atom PDF