Bug 1546944 - Getting Forbidden exception after ordering the service by non-admin user.
Summary: Getting Forbidden exception after ordering the service by non-admin user.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - Service
Version: 5.8.0
Hardware: All
OS: All
high
high
Target Milestone: GA
: 5.10.0
Assignee: Ohad Levy
QA Contact: Antonin Pagac
URL:
Whiteboard:
: 1563146 (view as bug list)
Depends On:
Blocks: 1553809 1569079
TreeView+ depends on / blocked
 
Reported: 2018-02-20 06:01 UTC by Neha Chugh
Modified: 2021-12-10 15:41 UTC (History)
11 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1553809 1569079 (view as bug list)
Environment:
Last Closed: 2019-02-11 13:59:07 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Neha Chugh 2018-02-20 06:01:13 UTC
Description of problem:
Even after enabling the Service Role, User not able to order the catalog and it throws 

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

How reproducible:
Always

Steps to Reproduce:
1. Go to Access Control, Create a role named "service_role" with below roles should be enabled i.e. Compute and Services.
2. Create a user i.e. "service_user" based on this "service_role" 
3. Login with service_user and while ordering the catalog, it is throwing 403 Forbidden exception.

Actual results:

[----] E, [2018-02-16T06:22:32.979134 #1964:4db8c70] ERROR -- : MIQ(Api::ServiceDialogsController.api_error) API Error
[----] E, [2018-02-16T06:22:32.979219 #1964:4db8c70] ERROR -- : MIQ(Api::ServiceDialogsController.api_error) Api::ForbiddenError: Use of the read action is forbidden
[----] I, [2018-02-16T06:22:32.979768 #1964:4db8c70]  INFO -- : MIQ(Api::ServiceDialogsController.log_request) Response:       {:completed_at=>"2018-02-16 11:22:32 UTC", :size=>"0.108 KBytes", :time_taken=>"0.017 Seconds", :status=>403}

Expected results:

It should be able to order the service.

Additional info:

As a workaround, if we enable the automate privilege to the service_user then he is able to order the service.

Comment 4 CFME Bot 2018-03-08 17:34:14 UTC
New commit detected on ManageIQ/manageiq-api/master:

https://github.com/ManageIQ/manageiq-api/commit/2033b1440b729f5a91cd0749f6cded4d8c416b47
commit 2033b1440b729f5a91cd0749f6cded4d8c416b47
Author:     Jillian Tullo <jtullo>
AuthorDate: Thu Mar  8 11:09:33 2018 -0500
Commit:     Jillian Tullo <jtullo>
CommitDate: Thu Mar  8 11:09:33 2018 -0500

    Add svc_catalog_provision product feature to service dialog queries

    Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1546944

 config/api.yml | 12 +-
 spec/requests/service_dialogs_spec.rb | 16 +
 2 files changed, 25 insertions(+), 3 deletions(-)

Comment 9 Satoe Imaishi 2018-05-15 13:40:29 UTC
*** Bug 1563146 has been marked as a duplicate of this bug. ***

Comment 10 Antonin Pagac 2018-10-12 13:31:18 UTC
Verified with 5.10.0.19.


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