Univention Bugzilla – Bug 53240
UMC does not work with latest Safari
Last modified: 2021-05-25 16:01:32 CEST
... at all. The problem is univention/get/meta which returns 406: "The specified locale is not available". The header is "Accept-Language: en-us". Note the lower case of the territory. https://bugs.webkit.org/show_bug.cgi?id=163096
Unclear when this is fixed and when Safari gets the update.
And this worked on UCS 4.4?
I cannot reproduce this: curl -i http://Administrator:univention@10.200.27.40/univention/get/meta -H "Accept-Language: en-us" curl -i http://Administrator:univention@10.200.27.40/univention/get/meta -H "Accept-Language: de-at"
My fix would be: diff --git management/univention-management-console/univention-management-console-web-server management/univention-management-console/univention-management-console-web-server index a81125fa45..ae54404890 100755 --- management/univention-management-console/univention-management-console-web-server +++ management/univention-management-console/univention-management-console-web-server @@ -891,6 +891,9 @@ class CPgeneric(Ressource): CORE.warn('malformed Accept-Language header: %s' % (exc,)) languages = [] + # fix Safari: https://bugs.webkit.org/show_bug.cgi?id=163096 + languages = [re.sub('([a-z][a-z]-)([a-z][a-z])', lambda m: m.group(1) + m.group(2).upper(), lang) for lang in languages] + # pre parse the HTTP syntax so that the UMC-Server doesn't need to do this (because there are no utility functions there) request.headers['Accept-Language'] = ', '.join(languages) or 'en-US'
Adjusting the Acceppt-Language header in the umc-web-server: univention-management-console (12.0.12-1) 20ec2f481dbd | Bug #53240: workaround UMC access for Safari browsers
Okay, works again. Changelog probably not needed. Did not test 4.4 but it is a Safari bug anyway, most likely introduced in the last couple of weeks.
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".