Bug 1546375
Summary: | Requests originating from the API contain no 'userid' attribute in $evm.root | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Robb Manes <rmanes> | |
Component: | API | Assignee: | Gregg Tanzillo <gtanzill> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ievgen Zapolskyi <izapolsk> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 5.8.0 | CC: | fdewaley, gmccullo, izapolsk, lufu, obarenbo, simaishi, smallamp | |
Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
Target Release: | 5.10.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1547527 1565259 1565262 (view as bug list) | Environment: | ||
Last Closed: | 2019-02-11 14:05:11 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1547527, 1565259, 1565262 |
Description
Robb Manes
2018-02-16 22:00:45 UTC
From my inspectiong, seeing as the miq-ae-engine seems to simply consume the userid passed to it, I've set the component as 'API' - please correct me if I'm wrong. At least the `request_initiator` appears to be resolved in [here][1] - is this possibly a duplicate of bz1487749? [1]: https://github.com/ManageIQ/manageiq/pull/16179/commits/940e56998c87b6aa8147a6c9062f846d76085e33#diff-d286dd33aa15fb98e02d16598ad92899L14 Lucy - Please try to validate if this is really a dup on bz1487749. Levgen - This looks like a dupe of BZ1487749. Can you please check. Thanks - Sudhir New commit detected on ManageIQ/manageiq-api/master: https://github.com/ManageIQ/manageiq-api/commit/8284f6d6bd217f5cdfddbc309c2e7e2131d06398 commit 8284f6d6bd217f5cdfddbc309c2e7e2131d06398 Author: Jillian Tullo <jtullo> AuthorDate: Tue Feb 20 13:57:00 2018 -0500 Commit: Jillian Tullo <jtullo> CommitDate: Wed Feb 21 08:10:31 2018 -0500 Set user when queueing VM actions When VM actions are queued, the user should be set so that it is available as the requester in automate. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1546375 app/controllers/api/vms_controller.rb | 28 +++++++++++++++++++++------- spec/requests/vms_spec.rb | 32 +++++++++++++++++++++++++++++++- 2 files changed, 52 insertions(+), 8 deletions(-) Verified in 5.10.0.2 |