Project

General

Profile

Actions

Bug #26200

closed

[Audit] Repository creation under product creates audit record with empty content

Added by Kavita Gaikwad almost 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Audit Log
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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.


Related issues 2 (0 open2 closed)

Related to Katello - Bug #26675: [Audit] Repository creation under product creates audit record with empty contentClosedKavita GaikwadActions
Blocks Katello - Bug #27383: Missing(ID: N) for Host_ids column in case of audit records for subscription updatesClosedKavita GaikwadActions
Actions

Also available in: Atom PDF