← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2110054] [NEW] Serving horizon on custom STATIC_URL is broken

 

Public bug reported:

Issue description
=================

With migration from django-pyscss to libsass it seems that templating of $static_url in SCSS:
https://opendev.org/openstack/horizon/src/commit/1c1363e2efdcc6492c8a29f122b2838ac196993d/openstack_dashboard/static/dashboard/scss/_variables.scss#L8

As a result, font_awesome is returning 404

How to reproduce
================

1. Set `WEBROOT = '/horizon'`
2. Set in Apache: `Alias /horizon/static /openstack/venvs/horizon-31.0.0.0b2.dev19/lib/python3.12/site-packages/static/`
3. Collect & Compress

Expected behavior
=================
Inside of output.1e250ccd434f.css:
@font-face{font-family:'FontAwesome';src:url("/horizon/static/horizon/lib/font_awesome/fonts/fontawesome-webfont.eot?v=4.7.0")

Actual result
=============
@font-face{font-family:'FontAwesome';src:url("/static/horizon/lib/font_awesome/fonts/fontawesome-webfont.eot?v=4.7.0")

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/2110054

Title:
  Serving horizon on custom STATIC_URL is broken

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Issue description
  =================

  With migration from django-pyscss to libsass it seems that templating of $static_url in SCSS:
  https://opendev.org/openstack/horizon/src/commit/1c1363e2efdcc6492c8a29f122b2838ac196993d/openstack_dashboard/static/dashboard/scss/_variables.scss#L8

  As a result, font_awesome is returning 404

  How to reproduce
  ================

  1. Set `WEBROOT = '/horizon'`
  2. Set in Apache: `Alias /horizon/static /openstack/venvs/horizon-31.0.0.0b2.dev19/lib/python3.12/site-packages/static/`
  3. Collect & Compress

  Expected behavior
  =================
  Inside of output.1e250ccd434f.css:
  @font-face{font-family:'FontAwesome';src:url("/horizon/static/horizon/lib/font_awesome/fonts/fontawesome-webfont.eot?v=4.7.0")

  Actual result
  =============
  @font-face{font-family:'FontAwesome';src:url("/static/horizon/lib/font_awesome/fonts/fontawesome-webfont.eot?v=4.7.0")

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2110054/+subscriptions