Bug 52429 - Mark App Center LDAP extensions as Python3 incompatible (4.4)
Mark App Center LDAP extensions as Python3 incompatible (4.4)
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-7
Assigned To: Arvid Requate
Jürn Brodersen
:
Depends on:
Blocks: 52815
  Show dependency treegraph
 
Reported: 2020-11-24 19:40 CET by Arvid Requate
Modified: 2021-02-19 20:53 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
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 Arvid Requate univentionstaff 2020-11-24 19:40:28 CET
As preparation to the UCS-5 release the UDM extensions, join hooks and LDAP ACL templates that contain Python code need to be marked as Python2 or Python3 compatible, see https://filestore.knut.univention.de/owncloud/f/975138 . Otherwise the update will get blocked.

Some of the UDM extensions registered by the App center have been adjusted in UCS 5 and can be marked e.g. as  "--ucsversionend 4.4-99". They will get replaced in UCS-5 anyway.

The output of

git diff 4.4-6 5.0-0 -- management/univention-appcenter/udm

shows that udm/handlers/appcenter/app.py needed some adjustment for Python3.
Comment 1 Arvid Requate univentionstaff 2020-11-25 18:19:12 CET
If Apps like the S4C are only installed on a UCS 4.4 system other than the Primary Directory Node (already updated to UCS 5), then the package needs to register a module that is also Python 3 compatible. Either by making it Py2+3 compatible or by registering two separate ones.

I've backported the Python3 adjustments for the UDM extensions part of the Appcenter.

Cherry-picked the following parts of the UCS 5.0-0 commits:
git show da3ab2d784 management/univention-appcenter/udm
Comment 2 Arvid Requate univentionstaff 2020-11-26 15:56:15 CET
fd4da7d024 | add python 3 compatibility
faf4eef014 | python*-appcenter depends on python-u-lib
a0e2b0fbfb | Mark Appcenter UDM extensions as Python3 compatible
4a0640ccaa | Branch merge
2ceba4094f | 4.4-7 changelog

Package: univention-appcenter
Version: 8.0.11-137A~4.4.0.202011261510
Branch: ucs_4.4-0
Scope: ucs4.4-7
Comment 3 Jürn Brodersen univentionstaff 2020-11-30 09:02:21 CET
Changes OK
Upgrade OK
flake8 OK
jenkins OK
Changelog OK

-> Verified
Comment 4 Erik Damrose univentionstaff 2020-12-07 11:11:52 CET
UCS 4.4-7 has been released:
 https://docs.software-univention.de/release-notes-4.4-7-en.html

If this error occurs again, please use the 'Clone This Bug' option.