Bug 1288574 - Incremental update should error out gracefully when invalid id is provided for errata/package/puppet module
Summary: Incremental update should error out gracefully when invalid id is provided fo...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Errata Management
Version: 6.1.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-04 16:02 UTC by sthirugn@redhat.com
Modified: 2019-12-16 05:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-29 21:04:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description sthirugn@redhat.com 2015-12-04 16:02:56 UTC
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 21:04:43 UTC
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.