Bug #34541
closedCDN loading error for non-admin user and non-default org
Description
Description of problem:
An errors occurs at the downstream Satellite when updating the Upstream Foreman server with non-admin user and non-default org provided.
Version-Release number of selected component (if applicable):
7.0.0 snap 9
How reproducible:
always
Steps to Reproduce:
1. Have an upstream Satellite with non-default org created (optionally with uploaded manifest and synced RH repos).
2. In this Satellite create a role with these permissions:
view_products, view_organizations, edit_organizations
3. Within the non-default organization create a non-admin user and assign the role from 2. to him.
4. On the downstream Satellite create the SSL CA Content Credential for the Default organization (wget cert + hammer content-credentials create).
5. In the downstream Satellite's UI go to Content > Subscription > Manage Manifest > CDN Configuration > Upstream Foreman server and provide all fields:
URL: <url of the upstream SAT>
Username: <user from 3.>
Password: <his pass>
Organization label: <the non-default org from 1.>
LCE label: Library
CV label: Default_Organization_View
SSL CA CC: <the one created in 4.>
6. Click Upload
Actual results:
An error occurs:
CDN loading error: https://<UPSTREAM_SAT_FQDN>:443/katello/api/v2/organizations/3/download_debug_certificate not found
Expected results:
no errors
Additional info:
When you provide the user from point 3. with Admin rights on the upstream Satellite, the upload passes without errors.