Bug 1316984 - apipie-bindings for system ruby is out of date
apipie-bindings for system ruby is out of date
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Packaging (Show other bugs)
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: --
Assigned To: satellite6-bugs
Katello QA List
Depends On:
  Show dependency treegraph
Reported: 2016-03-11 11:02 EST by Jason Montleon
Modified: 2016-07-25 18:05 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-07-25 18:05:42 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jason Montleon 2016-03-11 11:02:07 EST
Description of problem:

This causes apipie-bindings to send optional parameters with required nested parameters to be sent. With the rails 4 deep munging converting empty arrays to nil this breaks api calls.

This may affect hammer as well.

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

How reproducible:

Steps to Reproduce:
1. create an OS via the API in Satellite 6.2 using apipie-bindings

Actual results:
2016-03-11 09:36:08 [app] [I]   Parameters: {"operatingsystem"=>{"name"=>"CentOS", "major"=>"6", "minor"=>"6", "family"=>"Redhat", "os_parameters_attributes"=>nil}, "apiv"=>"v2"}
2016-03-11 09:36:08 [app] [I] Authorized user admin(Admin User)
2016-03-11 09:36:08 [app] [W] Action failed
 | ArgumentError: Hash or Array expected, got NilClass (nil)

Expected results:

Additional info:
Should be updated to 0.0.14 as in foreman upstream
Comment 2 Jason Montleon 2016-03-12 22:15:43 EST
I should say rather that the deep munging makes it impossible to work around it by sending an empty array or hash as it is converted to nil. 

Also, an updated apipie-bindings package has been built since this bug was opened and should fix the problem.
Comment 3 Eric Helms 2016-07-25 18:05:42 EDT
This should be available as of 6.2 -- if you find that it is not the case please re-open so that we may re-assess.

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