Description of problem: When editing the "current_group" the request fails with: { "error": { "kind": "internal_server_error", "message": "MiqGroup(#14516000) expected, got Hash(#4780420)", "klass": "ActiveRecord::AssociationTypeMismatch" } } Might be related to https://bugzilla.redhat.com/show_bug.cgi?id=1549085 , only this one happens on both 5.9.0 and 5.8.4 Version-Release number of selected component (if applicable): 5.8.3.4 5.9.0.22 How reproducible: 100% Steps to Reproduce: 1. create a user 2. POST /api/users/:id { "action": "edit", "current_group": {"href": "https://addr/api/groups/13"} }
https://github.com/ManageIQ/manageiq-api/pull/329
New commit detected on ManageIQ/manageiq-api/master: https://github.com/ManageIQ/manageiq-api/commit/d2e8ea4a43978d95db19af67c0854340e703fb27 commit d2e8ea4a43978d95db19af67c0854340e703fb27 Author: Jillian Tullo <jtullo> AuthorDate: Tue Feb 27 08:45:30 2018 -0500 Commit: Jillian Tullo <jtullo> CommitDate: Tue Feb 27 08:45:30 2018 -0500 Raise bad request when current_group is specified on edit Editing of a current_group is allowed only on on the set_current_group action. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1549086 app/controllers/api/users_controller.rb | 4 ++-- spec/requests/users_spec.rb | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-)
Closing this as its already been verified in two z-streams and has test coverage around it.