Description of problem: the taxonomies are being set even for resources that do not use them. e.g. Architectures Version-Release number of selected component (if applicable): 6.4.0-11 Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Steps to reproduce: 1. switch context so you're in org1 and loc1 2. create architecture 3. go to audits page, you should see the audit 4. switch to org2, you should still see the audit because architecture is non-taxable, the audit lives only in org1 Devs notes: The problem is that since Audit is now taxable, when we do Audit.new its org and loc defaults to current context. This is caused by after_initialize :set_current_taxonomy defined in Taxonomix To see the behavior in console do: Organization.current = org1 Audit.new.organization_ids # => you'll get org1.id We override the value for taxable resources, but for non-taxable, such as architecture, this is a problem. We should override :set_current_taxonomy method in audite extensions to become noop.
Created redmine issue https://projects.theforeman.org/issues/24234 from this bug
VERIFIED on sat6.4.0-22 this is now behaving correctly (no taxonomy is assigned to non-taxable items).
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2927