Bug 44772

Summary: AdditionalPackagesMaster in an App may uninstall other Apps
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: App CenterAssignee: Felix Botner <botner>
Status: CLOSED FIXED QA Contact: Dirk Wiesenthal <wiesenthal>
Severity: normal    
Priority: P5 CC: botner, damrose, gohmann, requate
Version: UCS 4.1   
Target Milestone: UCS 4.1-4-errata   
Hardware: Other   
OS: Linux   
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:
Bug Depends on:    
Bug Blocks: 44778    

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>