Project

General

Profile

Actions

Bug #41934

closed

mgr/dashboard: Tryout feature of API documentation broken

Added by Patrick Seidensal over 4 years ago. Updated about 3 years ago.

Status:
Rejected
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The tryout feature of the API documentation is broken and works only for the login. Each other request made from the documentation to the backend fails due an error in passing the token:

curl -X GET "https://home:41007/api/cluster_conf" -H "accept: */*" -H "Authorization: Bearer [object Object]" 

Steps to reproduce:

  • Go to the API documentation by clicking the help icon in the top right corner of the dashboard, then click "API"
  • Provide the correct credentials in the login API documentation and click the login try out button
  • Copy the token to the the authentication field (top right corner)
  • Try out to send any other request to the backend. Results in the Authorization: Bearer [object Object] issue aforementioned.
Actions #1

Updated by Patrick Seidensal over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Patrick Seidensal over 4 years ago

  • Status changed from New to Rejected

Tryout feature is not broken. The UI looks like the user is logged in and does not need to log in manually, but in fact, the user needs to log out and manually log in with the bearer token.

Actions #3

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
Actions

Also available in: Atom PDF