Bug 40136

Summary: index.json.gz is downloaded multiple times
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: App CenterAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: best, gohmann, klaeser, walkenhorst
Version: UCS 4.1   
Target Milestone: UCS 4.1-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):
Max CVSS v3 score:

Description Dirk Wiesenthal univentionstaff 2015-11-30 22:39:02 CET
Btw. can't we store the E-Tag and make conditional HTTP requests?

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

I've changed in one App Center session the autostart behavior for a Docker App:
 - Opening App details
 - changing autostart
 - apply
 - opening App details
 - changing autostart back
 - apply

It looks like the index.json.gz was downloaded two times and a lot of Apps are loaded and unloaded. The logfile part is not from the whole session, only from the actions described above.
Comment 1 Dirk Wiesenthal univentionstaff 2015-11-30 23:45:35 CET
Fixed in
  univention-appcenter 5.0.19-18.77.201511302249

/var/cache/univention-appcenter/.etags added. Keeps track of other supra files and does not download it again in case of 304.
Comment 2 Felix Botner univentionstaff 2015-12-07 12:24:27 CET
... [   DEBUG]: UCS Version is '4.1'
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz"...
... [   DEBUG]:   ... Not Modified
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz.gpg"...
... [   DEBUG]:   ... Not Modified
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/categories.ini"...
... [   DEBUG]:   ... Not Modified
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/rating.ini"...
... [   DEBUG]:   ... Not Modified

modified index.json.gz in /var/cache/univention-appcenter/.etags

... [   DEBUG]: UCS Version is '4.1'
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz"...
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz.gpg"...
... [   DEBUG]:   ... Not Modified
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/categories.ini"...
... [   DEBUG]:   ... Not Modified
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/rating.ini"...
... [   DEBUG]:   ... Not Modified

removed /var/cache/univention-appcenter/.etags

... [   DEBUG]: UCS Version is '4.1'
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz"...
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz.gpg"...
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/categories.ini"...
... [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/rating.ini"...

OK - YAML
Comment 3 Janek Walkenhorst univentionstaff 2015-12-09 16:47:12 CET
<http://errata.software-univention.de/ucs/4.1/27.html>