Actions
Bug #26200
closed[Audit] Repository creation under product creates audit record with empty content
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Description
Findings -
Katello::Content keeps the information about content i.e cp_content_id, content_type, content_url.
Product :has_many association with contents and :has_many association with root_repositories.
Inside root_repositories, it just keep content_id no association with content but 'content' method definition is there.
In audit record after creating a repository under product I can see audited_changes includes -> {"content_id"=>[nil, "1551336016057"]}.
But as there is no content association mentioned in root_repository and while displaying information it tries to fetch association using ".reflect_on_association", it displays empty data.
So, this is issue while displaying content information on UI.
Actions