Project

General

Profile

Actions

Bug #39423

closed

product_content_importer do not update the content_label even if it has changed in the source for same content_id

Added by Sayan Das about 1 month ago. Updated 25 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

There can be a situation where a redhat repo was enabled in Katello, and say it has a set of properties right now e.g. content_id , repo name, content_label, url etc.

Now, if redhat decides to rename or correct that repo content_label for some reason, Our current code in https://github.com/Katello/katello/blob/master/app/services/katello/product_content_importer.rb#L160-L176 would not care for it and no matter how many times we refresh the manifest or delete and re-enable the repo, the repo would always keep on showing up with the wrong\old content_label.

If we check database, candlepin will have the updated info but not katello ( especially katello_contents ). Hence, it's important that we update the content_label as well via update_content in https://github.com/Katello/katello/blob/master/app/services/katello/product_content_importer.rb#L160-L176 to make sure that katello and Candlepin are in sync and a simple manifest refresh can fix the issue for any affected end-users.

Actions #1

Updated by The Foreman Bot about 1 month ago

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

Updated by The Foreman Bot 28 days ago

  • Fixed in Releases Katello 5.0.0 added
Actions #3

Updated by Sayan Das 28 days ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Ian Ballou 25 days ago

  • Target version set to Katello 5.0.0
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF