freeipa web ui -- incorrect configuration for awesome fonts

Bug #1772921 reported by gianluca
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
freeipa (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Hi, another bug for FreeIPA, but this is quite trivial and not very important either. The file /usr/share/ipa/ipa.conf.template containw the line

Alias /ipa/ui/fonts/fontawesome "${FONTS_DIR}/fontawesome"

for providing the Awesome font to web browsers. $FONTS_DIR si correctly replaced with /usr/share/fonts/truetype/ when the template is copied into the Apache configuration directory, but the name of the directory (fontawesome) is wrong in Ubuntu, since the font is actually installed into /usr/share/fonts/truetype/font-awesome/ (with the minus sign). As a result, the web ui is full of unrecognized UTF-8 glyphs.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

hah, fixed in git

Changed in freeipa (Ubuntu):
status: New → In Progress
importance: Undecided → High
Revision history for this message
gianluca (amato) wrote :

I tried installing with 4.7.0.pre2, but I get an exception

KeyError: 'FONT_AWESOME_DIR'

I think you should add

FONT_AWESOME_DIR=paths.FONT_AWESOME_DIR

in the create_instance function in httpinstance.py

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

oh man.. fixed in ~ppa2

Revision history for this message
gianluca (amato) wrote :

I confirm that it works!

Revision history for this message
William (eshagh) wrote :

I had to add the same line (FONT_AWESOME_DIR=paths.FONT_AWESOME_DIR) to /usr/lib/python2.7/dist-packages/ipaserver/install/server/upgrade.py after line 1775 to overcome the FONT_AWESOE_DIR keyerror an upgrade.

tooks notes from: https://pagure.io/freeipa/c/2da9a4ca6a060dea106f02269a961d9e6b8bebcf

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package freeipa - 4.7.0-1ubuntu4

---------------
freeipa (4.7.0-1ubuntu4) cosmic; urgency=medium

  * Actually build server on architecture any.

 -- Dimitri John Ledkov <email address hidden> Tue, 02 Oct 2018 23:32:01 +0100

Changed in freeipa (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
gianluca (amato) wrote :

I confirm that FONT_AWESOME_DIR=paths.FONT_AWESOME_DIR should be added to /usr/lib/python2.7/dist-packages/ipaserver/install/server/upgrade.py for upgrading to work. Is it better to add a different bug report?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

I've pushed an update to cosmic which fixes this (4.7.1-2ubuntu1), hope it still makes it in the release (should)

Revision history for this message
Andreas Ntaflos (daff) wrote :

Is this fix going to make it into bionic?

Revision history for this message
Karoly Czovek (kczovek) wrote :

Still an issue (on bionic)

Revision history for this message
sandmouse (sandmouse) wrote :

A year later: this is still an issue on bionic.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

and likely remains that way, it's not the only bug there.. but feel free to try this:

https://launchpad.net/~freeipa/+archive/ubuntu/azure-ci

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.