Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-18754

LCE change through bulk actions fails with 'undefined method' error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.14.0
    • Hosts
    • 0
    • False
    • Moderate
    • sat-proton
    • None
    • None
    • None
    • None

      Description of problem:
      During verification of BZ#1944710 I tried to change lifecycle environment of a host through bulk actions on the Content Hosts page. The first issue is that we are still able to assign a LCE not present on the content source (like external capsule), the second issue is that it fails with

      undefined method `content_view=' for #<Katello::Host::ContentFacet:0x00007f77416c1528>

      Version-Release number of selected component (if applicable):
      6.14.0 snap 4

      How reproducible:
      always

      Steps to Reproduce:
      1. Register a host through external capsule where only some LCEs are synced.
      2. Go to Content Hosts -> select host -> Select Action -> Change Lifecycle Environment
      3. In the "Content Host Bulk Content" modal select a LCE, CV, click Assign, confirm Yes

      Actual results:
      Fails with 'undefined method' error

      Expected results:
      1. no 'undefined methor' error
      2. I shouldn't be able to pick LCE not present on the content source, or at least I should get meaningful error message

              jira-bugzilla-migration RH Bugzilla Integration
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: