Actions
Bug #41934
closedmgr/dashboard: Tryout feature of API documentation broken
% 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