Project

General

Profile

Bug #27830

Unable to load audits page - undefined method `abstract_class?' for Object:Class

Added by Marek Hulán about 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

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1750846

Description of problem:

Audits page doesn't load, it only shows the following ISE:

undefined method `abstract_class?' for Object:Class

I tried to list audits using hammer and it worked, so I guess this is webui issue.

Version-Release number of selected component (if applicable):
6.6.0 snap#19

How reproducible:
always

Steps to Reproduce:
1. visit audits page


Related issues

Related to Foreman - Bug #27346: Missing audit records for Host CreateClosed

Associated revisions

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

Fixes #27830 - fix audit's main_objects list to load audit page (#7034)

While getting Audit's main_objects list, in case of superclass
ActiveRecord::Base method call .table_exists? raises an exception
undefined method 'abstract_class?' for Object:Class.
So, excluding this superclass from parent_list.

History

#1 Updated by Marek Hulán about 1 year ago

  • Subject changed from Unable to load audits page - undefined method `abstract_class?' for Object:Class to Unable to load audits page - undefined method `abstract_class?' for Object:Class
  • Fixed in Releases 1.24.0 added

this is 1.24 blocker

#2 Updated by Kavita Gaikwad about 1 year ago

  • Fixed in Releases deleted (1.24.0)

From rails console, "ActiveRecord::Base" is not found inside superclasses while getting audit main_objects.
But on web-ui, getting listed inside superclasses.

I guess, on server start something get register that's why getting it.

ActiveRecord::Base.table_exists? is raising an exception "undefined method `abstract_class?' for Object:Class"

#3 Updated by Kavita Gaikwad about 1 year ago

  • Assignee set to Kavita Gaikwad

#4 Updated by Kavita Gaikwad about 1 year ago

  • Related to Bug #27346: Missing audit records for Host Create added

#5 Updated by The Foreman Bot about 1 year ago

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

#6 Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases 1.24.0 added

#7 Updated by Kavita Gaikwad about 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF