Bug 39693 - index.json.gz is downloaded multiple times
index.json.gz is downloaded multiple times
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-31 10:04 CET by Stefan Gohmann
Modified: 2019-01-03 07:23 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.034
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
appcenter.log (122.44 KB, application/text)
2015-10-31 10:04 CET, Stefan Gohmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2015-10-31 10:04:40 CET
Created attachment 7240 [details]
appcenter.log

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 Florian Best univentionstaff 2015-11-18 11:26:26 CET
Btw. can't we store the E-Tag and make conditional HTTP requests?
Comment 2 Alexander Kläser univentionstaff 2015-11-22 23:45:31 CET
(In reply to Florian Best from comment #1)
> Btw. can't we store the E-Tag and make conditional HTTP requests?

+1
Comment 3 Florian Best univentionstaff 2015-11-23 17:07:24 CET
curl -I -H 'If-None-Match: "93c18eb-5d8d-5253595118100"' https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz
HTTP/1.1 304 Not Modified
Date: Mon, 23 Nov 2015 16:06:21 GMT
Server: Apache/2.2.22 (Debian)
ETag: "93c18eb-5d8d-5253595118100"
Comment 4 Dirk Wiesenthal univentionstaff 2015-11-30 22:43:30 CET
(In reply to Florian Best from comment #1)
> Btw. can't we store the E-Tag and make conditional HTTP requests?

Bug#40136 because the two issues (Comment 1 and Comment 2) are very distinct. The initial bug report is harder to fix.

After applying changes in the App Settings page, the container was stopped, or the settings were adjusted, the autostart changed... This effects the App.js object. Therefore the App Center is queried again (to get a fresh copy of that app from the server). This triggers the download of index.json.

This is not very elegant. One could just query that very app (without hitting the App Center server). But one has to be careful updating the JS cache that filled the Gallery.
Comment 5 Stefan Gohmann univentionstaff 2019-01-03 07:23:09 CET
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.