Actions
Bug #30238
closedundefined method `klass' for nil:NilClass
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
When using host filter 'applicable_errata_issued > "10 days ago"' [0], I get error "undefined method `klass' for nil:NilClass" in WebUI and attached traceback. Happens for both filtering hosts in hosts list and filtering hosts while generating templates.
Steps to Reproduce:
1. Monitoring -> Report Templates -> Host - Statuses -> Generate
2. hosts: applicable_errata_issued > "10 days ago"
3. Submit
Actual results:
Error, nothing generated
Expected results:
Successfully generated, correctly filtered report
This can also be generated via rails console
> Host.search_for('applicable_errata_issued = "10 days ago"') NoMethodError: undefined method `klass' for nil:NilClass from /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/scoped_search-4.1.8/lib/scoped_search/query_builder.rb:398:in `reflection_keys'
Updated by Ian Ballou over 4 years ago
- Target version set to Katello 3.16.0
- Triaged changed from No to Yes
Updated by Partha Aji over 4 years ago
- Assignee changed from Partha Aji to Adam Ruzicka
Updated by The Foreman Bot over 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/8839 added
Updated by Ian Ballou over 4 years ago
- Target version changed from Katello 3.16.0 to Katello 3.17.0
Updated by The Foreman Bot over 4 years ago
- Fixed in Releases Katello 4.0.0 added
Updated by Adam Ruzicka over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|e62c1d835474ce56612492197f3f50f0c5ed731b.
Actions