Project

General

Profile

Bug #22557

Dashboard on backup MGRs always redirects to /, breaking reverse proxy support

Added by Nick Erdmann almost 5 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
General
Target version:
-
% Done:

0%

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

Description

The backup MGRs always redirect to / on the active MGR. This means if the proxy hits an active MGR for /, the dashboard loads without redirect, but the proxy might try to load other resources such as images from backup MGRs, which then redirect to /. Instead of the requested image, the browser then receives a html page.

If the proxy uses a backup MGR to load $url_prefix/, it redirects to / on the active MGR, so this breaks url_prefixes too.

The change which causes this behavior appeared in 12.2.2.

I'm working on a fix: https://github.com/ceph/ceph/pull/19758


Related issues

Copied to mgr - Backport #22831: luminous: Dashboard on backup MGRs always redirects to /, breaking reverse proxy support Resolved

History

#1 Updated by John Spray almost 5 years ago

  • Category changed from ceph-mgr to 132
  • Status changed from New to Fix Under Review

#2 Updated by Kefu Chai almost 5 years ago

  • Status changed from Fix Under Review to Resolved

#3 Updated by Kefu Chai almost 5 years ago

  • Assignee set to Nick Erdmann

#4 Updated by John Spray almost 5 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to luminous

#5 Updated by John Spray almost 5 years ago

  • Copied to Backport #22831: luminous: Dashboard on backup MGRs always redirects to /, breaking reverse proxy support added

#6 Updated by John Spray almost 5 years ago

  • Status changed from Pending Backport to Resolved

#7 Updated by Ernesto Puerta over 1 year ago

  • Project changed from mgr to Dashboard
  • Category changed from 132 to General

Also available in: Atom PDF