Bug 40136 - index.json.gz is downloaded multiple times
index.json.gz is downloaded multiple times
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-0-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-30 22:39 CET by Dirk Wiesenthal
Modified: 2015-12-09 16:47 CET (History)
4 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>