Created attachment 11203 [details] Cookies for both English and German, portal in German but module in English When you first load the UMC portal, it sets an "en-US" cookie above the root of the domain (e.g. ".backup.school.test"). When you log in, it sets an "en-US" cookie at the root of the domain ("backup.school.test"). Changing the language in the interface to German sets the cookie at ".backup.school.test", but ignores the one set at "backup.school.test". Since modules use the cookie at "backup.school.test", the portal displays in German but the modules still display in English.
The error that the UMC modules do not adopt the selected language has been fixed. Currently there is another bug that the administrative elements of the portal do not translate their text until the website is reloaded. This is due to the fact that the administrative elements are loaded differently in the backend and do not provide all translations directly. As a result, the portal cannot translate the texts. The bug for this is the following: https://forge.univention.org/bugzilla/show_bug.cgi?id=54231 We decided, that this will be fixed as a separate bug at a later point and that we release the current changes.
The problem was that univention-web did not specify a domain when creating cookies, whereas univention-portal did. For example, if the domain is portal-dev.intranet, the portal has created a cookie with the domain ".portal-dev.intranet". However, the parameter was omitted for univention-web. As a result, "portal-dev.intranet" was used as the domain. This resulted in us having two cookies with the same name in `document.cookies` and the code took the first cookie in the string. Now that we are using the same domain, we no longer have this duplication and the language remains consistent. 5.0-7 univention-web.yaml 81df1aa5226a | feat(umc): Cookie creation now also specifies the domain univention-web (4.0.7-2) 81df1aa5226a | feat(umc): Cookie creation now also specifies the domain 5.1-0 univention-web (5.0.3) 020a431fd529 | feat(umc): Cookie creation now also specifies the domain 5.2-0 univention-web (6.0.4) 714e88781584 | feat(umc): Cookie creation now also specifies the domain
univention-web (4.0.7-3) a8391b956b589c62459c47759df43e012f0dc011 - add explict dependency to openjdk-11-jre
<https://errata.software-univention.de/#/?erratum=5.0x1033>