Project

General

Profile

Bug #26200

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

Added by Kavita Gaikwad over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Audit Log
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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

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

Associated revisions

Revision dab2876f (diff)
Added by Kavita Gaikwad about 1 year ago

Fixes #26200 - call audit_hook_to_find_records for getting label (#6710)

  • Fixes #26200 - call audit_hook_to_find_records for getting label

History

#1 Updated by Kavita Gaikwad over 1 year ago

  • Assignee set to Kavita Gaikwad

#2 Updated by Kavita Gaikwad over 1 year ago

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

#3 Updated by The Foreman Bot over 1 year ago

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

#4 Updated by Kavita Gaikwad over 1 year ago

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

#5 Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases 1.24.0 added

#6 Updated by Kavita Gaikwad about 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF