Bug #48362
mgr/dashboard: SSO not working after REST API versioning
Status:
Resolved
Priority:
High
Assignee:
Category:
General - Back-end
Target version:
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Description
When using SSO (e.g.: using ceph-dev instructions) and before even the log-in form is displayed, the following white error page appears:
{"status": "415 Unsupported Media Type", "detail": "Unable to find version in request header", "request_id": "206841b7-d745-4fdb-ae41-919d3c7fa64b", "traceback": "Traceback (most recent call last):\n File \"/usr/lib/python3.6/site-packages/cherrypy/_cprequest.py\", line 638, in respond\n self._do_respond(path_info)\n File \"/usr/lib/python3.6/site-packages/cherrypy/_cprequest.py\", line 697, in _do_respond\n response.body = self.handler()\n File \"/usr/lib/python3.6/site-packages/cherrypy/lib/encoding.py\", line 219, in __call__\n self.body = self.oldhandler(*args, **kwargs)\n File \"/usr/lib/python3.6/site-packages/cherrypy/_cptools.py\", line 230, in wrap\n return self.newhandler(innerfunc, *args, **kwargs)\n File \"/ceph/src/pybind/mgr/dashboard/services/exception.py\", line 55, in dashboard_exception_handler\n raise error\n File \"/ceph/src/pybind/mgr/dashboard/services/exception.py\", line 46, in dashboard_exception_handler\n return handler(*args, **kwargs)\n File \"/usr/lib/python3.6/site-packages/cherrypy/_cpdispatch.py\", line 54, in __call__\n return self.callable(*self.args, **self.kwargs)\n File \"/ceph/src/pybind/mgr/dashboard/controllers/__init__.py\", line 691, in inner\n raise cherrypy.HTTPError(415, \"Unable to find version in request header\")\ncherrypy._cperror.HTTPError: (415, 'Unable to find version in request header')\n", "version": "18.4.0"}
History
#1 Updated by Avan Thakkar almost 3 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 38300
#2 Updated by Ernesto Puerta almost 3 years ago
- Status changed from Fix Under Review to Resolved
#3 Updated by Ernesto Puerta over 2 years ago
- Project changed from mgr to Dashboard
- Category changed from 146 to General - Back-end