Bug 57192 - Changing language in UMC affects the portal, but not the modules
Summary: Changing language in UMC affects the portal, but not the modules
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
Version: UCS 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 5.0-7-errata
Assignee: Mika Westphal
QA Contact: Felix Botner
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-26 14:50 CET by J Leadbetter
Modified: 2024-05-02 13:58 CEST (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?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.171
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments
Cookies for both English and German, portal in German but module in English (105.65 KB, image/png)
2024-03-26 14:50 CET, J Leadbetter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J Leadbetter univentionstaff 2024-03-26 14:50:27 CET
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.
Comment 1 Mika Westphal univentionstaff 2024-04-16 11:29:27 CEST
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.
Comment 3 Mika Westphal univentionstaff 2024-04-19 09:32:13 CEST
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
Comment 4 Felix Botner univentionstaff 2024-04-25 10:03:43 CEST
univention-web (4.0.7-3)

a8391b956b589c62459c47759df43e012f0dc011 - add explict dependency to openjdk-11-jre
Comment 5 Iván.Delgado univentionstaff 2024-05-02 13:58:22 CEST
<https://errata.software-univention.de/#/?erratum=5.0x1033>