Bug 44772 - AdditionalPackagesMaster in an App may uninstall other Apps
AdditionalPackagesMaster in an App may uninstall other Apps
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-4-errata
Assigned To: Felix Botner
Dirk Wiesenthal
:
Depends on:
Blocks: 44778
  Show dependency treegraph
 
Reported: 2017-06-12 17:20 CEST by Dirk Wiesenthal
Modified: 2017-06-28 15:55 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 7: Crash: Bug causes crash or data loss
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.200
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017061221000664, 2017052921000241
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 2017-06-12 17:20:25 CEST
When uninstalling an App, the list of explicitely uninstalled packages is compiled from "DefaultPackages" and "AdditionalPackages$ROLE".

When the additional packages are essentially DefaultPackages of another App, this App is effectively uninstalled.

Happened in opsi (in fact, the only App using this feature). It uninstalls Samba 4 upon removal.
Comment 1 Erik Damrose univentionstaff 2017-06-13 09:21:17 CEST
For the actual issue of opsi + samba4: It could be a workaround to set the samba4 app as RequiredAppsInDomain.
Comment 2 Felix Botner univentionstaff 2017-06-13 09:26:33 CEST
simple, do not (never) uninstall "AdditionalPackages$ROLE"

for the opsi + samba4 scenario, uninstalling samba4 more or less catastrophic
Comment 3 Stefan Gohmann univentionstaff 2017-06-13 09:29:42 CEST
(In reply to Erik Damrose from comment #1)
> For the actual issue of opsi + samba4: It could be a workaround to set the
> samba4 app as RequiredAppsInDomain.

No, it doesn't need to be installed in the domain. It is still okay to install Samba 3 in the domain.

(In reply to Felix Botner from comment #2)
> simple, do not (never) uninstall "AdditionalPackages$ROLE"

Yes.
Comment 4 Felix Botner univentionstaff 2017-06-13 14:19:50 CEST
fixed in old/new api, univention-appcenter r80144
univention-appcenter.yaml 5.0.23-73.307.201706131355
Comment 5 Dirk Wiesenthal univentionstaff 2017-06-14 03:18:25 CEST
OK, works.
Comment 6 Janek Walkenhorst univentionstaff 2017-06-28 15:55:07 CEST
<http://errata.software-univention.de/ucs/4.1/432.html>