.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.
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:
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: