Bug 58469 - Appcenter cache comes in to inconsistent state if the download of all.tar fail
Summary: Appcenter cache comes in to inconsistent state if the download of all.tar fail
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: App Center
Version: UCS 5.2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 5.2-2-errata
Assignee: Iván.Delgado
QA Contact: Dirk Wiesenthal
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-15 10:55 CEST by Iván.Delgado
Modified: 2025-08-27 16:12 CEST (History)
0 users

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):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iván.Delgado univentionstaff 2025-07-15 10:55:50 CEST
Appcenter cache comes in to inconsistent state, if a network error ocurs bettewn the download of .all.tar.gpg (success) but the .all.tar donwload (fail).

Then the cache will not be updated until we perform a new release of an app, when the etags for all.tar.gpg change
Comment 3 Iván.Delgado univentionstaff 2025-07-16 08:14:48 CEST
Remove .etags file if the download of the all.tar.gz fail

Successful build
Package: univention-appcenter
Version: 11.2.1
Branch: 5.2-0
Scope: errata5.2-2

univention-appcenter.yaml
02c073f8a55f | fix(appcenter): Invalidate the appcenter cache if the download of all.tar.gz fail

univention-appcenter (11.2.1)
02c073f8a55f | fix(appcenter): Invalidate the appcenter cache if the download of all.tar.gz fail
Comment 4 Iván.Delgado univentionstaff 2025-07-16 08:16:32 CEST
Revert previous changes test fail

Successful build
Package: univention-appcenter
Version: 11.2.2
Branch: 5.2-0
Scope: errata5.2-2

univention-appcenter.yaml
5654af04c0c5 | Revert "fix(appcenter): Invalidate the appcenter cache if the download of all.tar.gz fail"

univention-appcenter (11.2.2)
5654af04c0c5 | Revert "fix(appcenter): Invalidate the appcenter cache if the download of all.tar.gz fail"
Comment 5 Iván.Delgado univentionstaff 2025-08-19 16:05:28 CEST
Remove .etags file if the download of the all.tar.gz fail and the file exist.

Successful build
Package: univention-appcenter
Version: 11.2.3
Release: 5.2-0
Scope: errata5.2-2
Comment 6 Iván.Delgado univentionstaff 2025-08-19 16:06:46 CEST
univention-appcenter (11.2.3)
d2c1e845db47 | fix(appcenter): Check if path exist before try to remove the file.
Comment 7 Dirk Wiesenthal univentionstaff 2025-08-27 11:52:51 CEST
Code review: OK
Automatic tests: OK
YAML: OK
Comment 8 Christian Castens univentionstaff 2025-08-27 16:12:11 CEST
<https://errata.software-univention.de/#/?erratum=5.2x179>