Bug 29588

Summary: Broken graphics in progress bar on UMC server restart after an app installation
Product: UCS Reporter: Alexander Kläser <klaeser>
Component: UMC (Generic)Assignee: Alexander Kläser <klaeser>
Status: CLOSED FIXED QA Contact: Dirk Wiesenthal <wiesenthal>
Severity: minor    
Priority: P4 CC: best, damrose, gohmann, jmm, wiesenthal
Version: UCS 3.1Flags: klaeser: Patch_Available+
Target Milestone: UCS 3.2-0-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional): Design, Usability
Max CVSS v3 score:
Attachments: Screenshot App-Center Progressbar

Description Alexander Kläser univentionstaff 2012-12-06 11:02:51 CET
Wird eine App installiert, so wird nach der Installation ein Neustart von UMC empfohlen. Da zu diesem Zeitpunkt bereits ein neuer Hash für das JS-Verzeichnis erzeugt wurde, wird die Ladebalken-Grafik nicht angezeigt. Nicht schlimm, aber auch nicht schön.
Comment 1 Alexander Kläser univentionstaff 2012-12-06 11:08:28 CET
Created attachment 4868 [details]
Screenshot App-Center Progressbar
Comment 2 Alexander Kläser univentionstaff 2012-12-06 11:25:28 CET
Ein ähnliches Problem ist mit dem Haken-Icon für installierte Apps, das wird dann ohne Reload nicht angezeigt, wenn die erste App installiert wurde.
Comment 3 Florian Best univentionstaff 2012-12-10 08:18:35 CET
Außerdem der confirm-Button, des browser-reload-Dialog. Dieser hat kein Hintergrundbild.
Comment 4 Dirk Wiesenthal univentionstaff 2013-02-28 20:47:09 CET
Man müsste irgendwo Resourcen definieren können, die nicht erst auf Abruf geladen werden, sondern sofort nach dem Laden aller Module.
Comment 5 Alexander Kläser univentionstaff 2013-03-04 13:56:52 CET
(In reply to comment #4)
> Man müsste irgendwo Resourcen definieren können, die nicht erst auf Abruf
> geladen werden, sondern sofort nach dem Laden aller Module.

Könnte man indem man sie explizit schon als Grafiken am Anfang einbindet… wäre wohl nur etwas unschön als Lösung.
Comment 6 Alexander Kläser univentionstaff 2013-11-07 16:52:35 CET
Another possibility would be to return the files along with a 301 (Moved Permanently) status code. Graphics could be accessed, yet the frontend would be able to detect that a change has taken place.
Comment 7 Alexander Kläser univentionstaff 2013-11-22 12:02:01 CET
(In reply to Alexander Kläser from comment #6)
> Another possibility would be to return the files along with a 301 (Moved
> Permanently) status code. Graphics could be accessed, yet the frontend would
> be able to detect that a change has taken place.

Yep, works with the following additional lines in the apache config file:

RewriteCond %{REQUEST_URI} ^/(univention-management-console/js_[^/]*)/.*
RewriteCond %{DOCUMENT_ROOT}/%1 !-f
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond %{REQUEST_METHOD} ^GET
RewriteRule ^(/univention-management-console/js)_[^/]*/(.*) $1/$2 [R=301]

No other changes necessary, as the HEAD request in UMC will still receive a 404 error. However, all GET requests are redirected.
Comment 8 Alexander Kläser univentionstaff 2013-11-22 12:56:43 CET
Package built, added YAML file 2013-11-22-univention-management-console-frontend.yaml.

 univention-management-console-frontend (3.0.152-2) unstable; urgency=low
 .
   * Bug #29588: added redirect rule for requests to outdated JS/graphics files
Comment 9 Dirk Wiesenthal univentionstaff 2013-12-09 13:41:44 CET
Works, YAML okay
Comment 10 Moritz Muehlenhoff univentionstaff 2013-12-12 11:31:20 CET
http://errata.univention.de/ucs/3.2/10.html