Bug 1288574 - Incremental update should error out gracefully when invalid id is provided for errata/package/puppet module
Incremental update should error out gracefully when invalid id is provided fo...
Status: CLOSED DEFERRED
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Errata Management (Show other bugs)
6.1.2
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: --
Assigned To: satellite6-bugs
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-04 11:02 EST by sthirugn@redhat.com
Modified: 2017-03-29 17:04 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-03-29 17:04:43 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description sthirugn@redhat.com 2015-12-04 11:02:56 EST
Description of problem:
Incremental update should error out gracefully when invalid id is provided for errata/package/puppet module

Version-Release number of selected component (if applicable):
Sat 6.1.5

How reproducible:
Always

Steps to Reproduce:
Attempt to do an incremental update with invalid puppet module id or package id or errata id.  The below example uses puppet module id:

# curl -k -H "Content-Type: application/json" -X POST -d  '{"description":"Testing incremental update", "add_content":{"puppet_module_ids":["bad_id"]},"content_view_version_environments":[{"environment_ids":["1"],"content_view_version_id": 19}]}' -u admin:changeme https://$sat6host/katello/api/content_view_versions/incremental_update

{"displayMessage":"undefined method `repositories' for nil:NilClass","errors":["undefined method `repositories' for nil:NilClass"]}


Actual results:
{"displayMessage":"undefined method `repositories' for nil:NilClass","errors":["undefined method `repositories' for nil:NilClass"]}

Expected results:
Proper error message should be displayed saying that the id is invalid.

Additional info:
Comment 3 Bryan Kearney 2017-03-29 17:04:43 EDT
Thank you for reporting this. Given our other priorities, I do not see us addressing this in the next few releases. I am therefore closing this out. If you feel that this is a mistake, please feel free to re-open with additional information. We appreciate your interest in Red Hat Satellite.

Note You need to log in before you can comment on or make changes to this bug.