RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1674337 - Cockpit gets unexpected internal error when unprivileged user accesses Subscriptions tab
Summary: Cockpit gets unexpected internal error when unprivileged user accesses Subscr...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
Lucie Vařáková
URL:
Whiteboard:
Depends On: 1682763
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-11 02:28 UTC by Ganesh
Modified: 2023-12-15 16:20 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
.Unprivileged users can access the Subscriptions page If a non-administrator navigates to the *Subscriptions* page of the web console, the web console displays a generic error message `Cockpit had an unexpected internal error`. To work around this problem, sign in to the web console with a privileged user and make sure to check the *Reuse my password for privileged tasks* checkbox.
Clone Of:
Environment:
Last Closed: 2020-09-15 15:32:48 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Snapshot of the incident (51.25 KB, image/png)
2019-02-11 02:28 UTC, Ganesh
no flags Details
Attachment1 (1.01 MB, image/png)
2020-09-09 10:56 UTC, Rehana
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-33054 0 None None None 2022-10-19 17:00:09 UTC

Description Ganesh 2019-02-11 02:28:23 UTC
Created attachment 1528853 [details]
Snapshot of the incident

Description of the problem:

Login to Cockpit with an unprivileged user and click on the 'Subscriptions' tab get 'Ooops' in red on the upper right corner of Cockpit. Clicking on that message get the explanation:
"Cockpit had an unexpected internal error. 

You can try restarting Cockpit by pressing refresh in your browser. The javascript console contains details about this error (Ctrl-Shift-J in most browsers)."

In the java console you get:
"index.js:6786 Uncaught TypeError: E.GetSyspurpose is not a function
    at index.js:6786
    at Function.<anonymous> (index.js:6604)
    at s (cockpit.js:958)
    at cockpit.js:970
    at n (cockpit.js:876)"

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


How reproducible:


Steps to Reproduce:
1. Login with the non-root unprivileged user to Cockpit.
2. Click on tab "Subscriptions"

Actual results:
- Shows, not the specific message.

Expected results:
- Specific and appropriate messages should pop-up if non-root users are not allowed to click on Subscription and check status.

Additional info:

Comment 1 Martin Pitt 2019-02-11 07:52:03 UTC
Confirming. This lives in subscription-manager-cockpit, reassigning.

Comment 12 Martin Pitt 2019-07-05 10:31:01 UTC
@Vendula: That seems okay, thanks! But hopefully this actually got fixed by now in subscription-manager? :-)

Comment 21 Rehana 2020-09-09 10:56:39 UTC
Created attachment 1714264 [details]
Attachment1 [details]

Comment 25 Jan Stavel 2022-10-19 16:55:55 UTC
a playbook to simulate this case


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