Bug 35271 - Save installed apps in a UCR variable
Save installed apps in a UCR variable
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-2-errata
Assigned To: Dirk Wiesenthal
Alexander Kläser
:
Depends on: 35177
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-07 07:16 CEST by Stefan Gohmann
Modified: 2014-07-10 13:33 CEST (History)
3 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 Stefan Gohmann univentionstaff 2014-07-07 07:16:46 CEST
I've just updated an UCS 3.2-1 system to the latest UCS 3.2-2 errata. The system has Samba 3 installed but the UCR variable is empty:

root@master301:~# dpkg -l univention-samba
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                          Version                                                       Description
+++-=============================================================-=============================================================-==========================================================================================================================================
ii  univention-samba                                              8.0.16-1.454.201401222000                                     UCS - Samba domain controller
root@master301:~# ucr search --brief repository/app_center/installed
repository/app_center/installed:
root@master301:~# ucr search --brief version/erratalevel
version/erratalevel: 133
root@master301:~#


+++ This bug was initially created as a clone of Bug #35177 +++

The app center should maintain a UCR variable which contains the installed apps as comma-separated list.

To make the UCR variable not to big, we should add a short char id to every app. Currently we should limit the id to 2 characters.

Please also add a test case to UCS test to ensure the short id is unique.
Comment 1 Stefan Gohmann univentionstaff 2014-07-07 07:29:02 CEST
It seems to work if I first switch to the test app center.
Comment 2 Dirk Wiesenthal univentionstaff 2014-07-08 12:55:09 CEST
Fixed in
  univention-management-console-module-appcenter 3.0.51-23.257.201407081251

Setting UCR variable in postinst
Comment 3 Alexander Kläser univentionstaff 2014-07-09 15:02:21 CEST
In my tests, the changes worked fine. Personally, I would rather make in the package postinst script a check for the UCR variable instead of comparing to a package version, but the function is fine as it is.

YAML file → OK

→ VERIFIED
Comment 4 Janek Walkenhorst univentionstaff 2014-07-10 13:33:38 CEST
http://errata.univention.de/ucs/3.2/139.html