Bug 56864 - univention-saml-schema breaks UCS4.4-9 udm in mixed environments
univention-saml-schema breaks UCS4.4-9 udm in mixed environments
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-5-errata
Assigned To: Florian Best
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-11-22 11:21 CET by Christina Scheinig
Modified: 2023-11-24 11:54 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.429
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023112221000105
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 Christina Scheinig univentionstaff 2023-11-22 11:21:48 CET
In mixed environments UCS4.4-9 UCS5.0-x udm is broken after the installation of  Errata Bug 56824 and Bug 56857

# /usr/share/univention-directory-manager-tools/univention-cli-server                                                                  
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 45, in <module>
    import univention.admincli.admin
  File "/usr/lib/python2.7/dist-packages/univention/admincli/admin.py", line 57, in <module>
    univention.admin.modules.update()
  File "/usr/lib/python2.7/dist-packages/univention/admin/modules.py", line 123, in update
    _walk(root, w_root, w_files)
  File "/usr/lib/python2.7/dist-packages/univention/admin/modules.py", line 110, in _walk
    m = importlib.import_module('univention.admin.handlers.%s' % (modulepackage,))  # type: Any
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/saml/serviceprovider.py", line 195, in <module>
    mapping.register('Identifier', 'SAMLServiceProviderIdentifier', None, univention.admin.mapping.ListToString, encoding='ASCII')
TypeError: register() got an unexpected keyword argument 'encoding'

The univention-s4connector was therefor also not starting anymore

----------------

apt-get install --reinstall univention-saml-schema on the 4.4-9 Systems fixes the issue
Comment 1 Florian Best univentionstaff 2023-11-22 17:05:11 CET
The registration of UDM modules are now done with ucsstartversion = UCS 5.0.
In UCS 4.4-9 slaves/etc the UDM modules are just installed via the Debian package. 

univention-saml.yaml
e0b2ab341f4f | chore(univention-saml): update advisory

univention-saml (7.0.8-12)
f68c5191b156 | fix(udm-saml): only register Python3-only UDM modules only in UCS 5.0
Comment 2 Felix Botner univentionstaff 2023-11-24 11:20:23 CET
OK - join of 4.4-9 backup into "5.0-5" domain works with updated univention-saml
OK - yaml
OK - univention-saml