Project

General

Profile

Actions

Bug #26200

closed

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

Added by Kavita Gaikwad about 5 years ago. Updated over 4 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 #1

Updated by Kavita Gaikwad about 5 years ago

  • Assignee set to Kavita Gaikwad
Actions #2

Updated by Kavita Gaikwad about 5 years ago

  • Related to Bug #26675: [Audit] Repository creation under product creates audit record with empty content added
Actions #3

Updated by The Foreman Bot about 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6710 added
Actions #4

Updated by Kavita Gaikwad almost 5 years ago

  • Blocks Bug #27383: Missing(ID: N) for Host_ids column in case of audit records for subscription updates added
Actions #5

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 1.24.0 added
Actions #6

Updated by Kavita Gaikwad over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF