Project

General

Profile

Bug #30725

hammer content-view version incremental-update fails with ISE

Added by Samir Jha 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:

These commands:

hammer -d content-view version incremental-update --content-view-version-id 9 --errata-ids 5
hammer -d content-view version incremental-update --content-view-version-id 9 --errata-ids 5 --lifecycle-environment-ids 8

fail to with:
500 Internal Server Error
"undefined method `first' for nil:NilClass"

Version-Release number of selected component (if applicable):
6,8 Snap 11

[root@dhcp-2-186 ~]# rpm -q satellite
satellite-6.8.0-0.7.beta.el7sat.noarch
[root@dhcp-2-186 ~]# rpm -q tfm-rubygem-katello
tfm-rubygem-katello-3.16.0-0.16.rc5.1.el7sat.noarch

How reproducible:
fails with API commands and hammer commands

Steps to Reproduce:
1. Create CV with fake errata
2. Create another empty CV
3. Try to use incremental-update command to add an erratuim to a version of CV

Actual results:

hammer -d shows:

[ERROR 2020-08-07T12:04:04 API] 500 Internal Server Error
[DEBUG 2020-08-07T12:04:04 API] {
"displayMessage" => "undefined method `first' for nil:NilClass",
"errors" => [
[0] "undefined method `first' for nil:NilClass"
]
}

Expected results:

CV version is created with errratum

Additional info:

also fails when using API

Associated revisions

Revision 902f0789 (diff)
Added by Samir Jha 3 months ago

Fixes #30725 - Server error on incremental update of empty CV (#8911)

History

#1 Updated by The Foreman Bot 3 months ago

  • Assignee set to Samir Jha
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8911 added

#2 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 4.0.0 added

#3 Updated by Samir Jha 3 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Chris Roberts 3 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.16.1
  • Fixed in Releases Katello 3.16.1 added
  • Fixed in Releases deleted (Katello 4.0.0)

Also available in: Atom PDF