Project

General

Profile

Actions

Bug #25105

closed

/api/settings/content_disconnected gives 403 without pointing out which permission is required

Added by Michael Johnson over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When user with Viewer role accesses Content -> Subscriptions page, $HOST/api/v2/settings/content_disconnected will be requested by browser. This endpoint return 403 error without explanation which permission is missing:

{
"error": {"message":"Access denied","details":"Missing one of the required permissions: "}
}

Version-Release number of selected component (if applicable):
katello-3.7.0-7
tfm-rubygem-katello-3.7.0.28-1

Steps to Reproduce:
1. Create new user with role "Viewer" (or any other role that has "view_subscriptions" in Subscription resource and "view_organizations" in Organization resource). Make sure it can access organization with manifest
2. Login as that user
3. Open Content -> Subscriptions
4. In web browser development tools, find request sent to $HOST/api/v2/settings/content_disconnected and read the response

Expected results:
Response contains information about permission that is required for endpoint to return data.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Feature #24259: Foreman canned adminClosedOndřej PražákActions
Actions #1

Updated by Michael Johnson over 5 years ago

  • Subject changed from /api/settings/content_disconnected gives 403 without pointing out which permission is required to /api/settings/content_disconnected gives 403 without pointing out which permission is required
  • Description updated (diff)
Actions #2

Updated by Jonathon Turel over 5 years ago

  • Target version set to Katello 3.9.0
  • Triaged changed from No to Yes
Actions #3

Updated by Zach Huntington-Meath over 5 years ago

Actions #4

Updated by Zach Huntington-Meath over 5 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF