Project

General

Profile

Actions

Bug #22851

closed

dashboard module: 404 for static resouces

Added by Shengjing Zhu about 6 years ago. Updated about 3 years 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 1 (0 open1 closed)

Copied to mgr - Backport #22921: luminous: dashboard module: 404 for static resoucesResolvedJohn SprayActions
Actions #1

Updated by Kefu Chai about 6 years ago

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

Updated by Ken Dreyer about 6 years ago

  • Backport set to luminous
Actions #3

Updated by John Spray about 6 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by John Spray about 6 years ago

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

Updated by Nathan Cutler about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions #7

Updated by Ernesto Puerta about 3 years ago

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

Also available in: Atom PDF