Bug #5104
closed
undefined method `redhat?' for nil:NilClass
Added by Thomas Cameron almost 11 years ago.
Updated over 6 years ago.
Description
I'm using Red Hat Satellite 6, nightly build. I created an organization called My Org, uploaded a manifest to it, synced some content, removed the manifest, and deleted the org. I got:
Warning!
undefined method `redhat?' for nil:NilClass
NoMethodError
undefined method `redhat?' for nil:NilClass
app/controllers/concerns/foreman/controller/taxonomies_controller.rb:89:in `destroy'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'
I'll upload an sosreport in a minute.
This system won't let me upload the sosreport, it's over 5 megs. I've posted it to http://camerontech.com/foreman/5104/
I should have mentioned - the organization still appears to be there, but when I try to select it as my org and navigate around to e.g. Red Hat Subscriptions, the little spinning icon just spins and spins.
- Project changed from Foreman to Katello
- Triaged set to No
Out of curiousity - does foreman-debug command allow you to upload the tarball?
Do not worry to upload it, only Foreman core developers will be able to read it. Thanks!
- Translation missing: en.field_release set to 13
- Category set to API
- Triaged changed from No to Yes
- Target version deleted (
45)
- Status changed from New to Assigned
- Assignee set to David Davis
Assigning to david since he is working on org deletion
- Target version changed from 48 to 49
- Target version changed from 49 to 54
- Status changed from Assigned to Closed
I performed the following steps:
- Imported manifest
- Enabled RH repos
- Synced RH repos
- Removed manifest
- Deleted org
And didn't receive an error. The code in question has gone through several iterations so I think it was probably fixed at some point.
Also available in: Atom
PDF