Bug 48867 - portal custom.css is overwritten if join script is (re-)executed
portal custom.css is overwritten if join script is (re-)executed
Status: NEW
Product: UCS
Classification: Unclassified
Component: Portal
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on: 48506
Blocks:
  Show dependency treegraph
 
Reported: 2019-03-05 18:32 CET by Stefan Gohmann
Modified: 2019-08-15 19:12 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.114
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2019-03-05 18:32:40 CET
From the joinscript:

---------------------------------------------------------------------
# One time action: Copy example custom css file
if [ $JS_LAST_EXECUTED_VERSION -lt 6 ]; then
    cp /usr/share/univention-portal/custom.css.example /usr/share/univention-portal/custom.css
fi
---------------------------------------------------------------------

The problem is that the custom.css is overwritten on a rejoin. I think it would better to copy the file only if the target does not exist.



+++ This bug was initially created as a clone of Bug #48506 +++

Text from Trello card:

Momentan unterstützt das Portal exakt eine Eigenschaft im CSS anzupassen: „background“. Wir wollen es zukünftig unterstützen, eine komplette und frei definierbare CSS-Datei neben die Default-Datei zu legen.
Begründung: Diese eine Datei erlaubt es uns, in Projekten optisch tiefgreifende Änderungen vorzunehmen. Bei Präsentationen und später im Projekt ist so etwas wichtig. Das sollte Abstände usw. anpassbar machen. Aber auch beispielsweise den Hintergrund für den Titel des Portals ändern. Das war ein Wunsch und konnte bisher nur über unzureichend über ein angepasstes Hintergrundbild erreicht werden.

Die CSS-Datei könnte in einer Art Inline-Editing im Frontend des Portals selber angepasst werden. Im ersten Schritt wird das aber nicht versprochen. (Nur, dass wir es uns anschauen)
Wir / Partner / Admins können in der CSS-Datei mit „! important“ immer angeben, dass ihre Definition wichtiger ist als der Default.