Project

General

Profile

Bug #48362

mgr/dashboard: SSO not working after REST API versioning

Added by Ernesto Puerta about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
dashboard/backend
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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 about 2 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 38300

#2 Updated by Ernesto Puerta about 1 month ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF