Project

General

Profile

Bug #22851

dashboard module: 404 for static resouces

Added by Shengjing Zhu 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

If you don't set mgr/dashboard/url_prefix, the static resouces are 404 due to the path:

```
<title>Ceph</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="//static/AdminLTE-2.3.7/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="//static/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="//static/AdminLTE-2.3.7/dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="//static/AdminLTE-2.3.7/dist/css/skins/skin-blue.min.css">
<link rel="stylesheet" href="//static/AdminLTE-2.3.7/plugins/datatables/jquery.dataTables.min.css">
<script src="//static/AdminLTE-2.3.7/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="//static/AdminLTE-2.3.7/plugins/sparkline/jquery.sparkline.min.js"></script>
<script src="//static/libs/rivets/0.9.6/rivets.bundled.min.js"></script>
<script src="//static/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="//static/AdminLTE-2.3.7/bootstrap/js/bootstrap.min.js"></script>
<script src="//static/AdminLTE-2.3.7/dist/js/app.min.js"></script>
<script src="//static/AdminLTE-2.3.7/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="//static/libs/moment.js/2.17.1/moment.min.js"></script>
<script src="//static/libs/Chart.js/2.4.0/Chart.min.js"></script>
<script>
```

The browser will want to access http://static/

This is a regress casued by https://github.com/ceph/ceph/pull/19758

Tested with ceph master branch and Chromium 62.0.3202.89


Related issues

Copied to mgr - Backport #22921: luminous: dashboard module: 404 for static resouces Resolved

History

#1 Updated by Kefu Chai almost 5 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Shengjing Zhu

#2 Updated by Ken Dreyer almost 5 years ago

  • Backport set to luminous

#3 Updated by John Spray almost 5 years ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by John Spray almost 5 years ago

  • Copied to Backport #22921: luminous: dashboard module: 404 for static resouces added

#6 Updated by Nathan Cutler 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