Univention Bugzilla – Bug 49029
Error message for failed authentication is always english
Last modified: 2019-07-15 13:51:25 CEST
Created attachment 9932 [details] Screenshot: German UMC login with english error message root@ucs01:~# univention-app info UCS: 4.3-3 errata456 Installed: ucsschool=4.3 v6 Upgradable: ucsschool Scenario: Login at UMC, language is german. The entered credentials are wrong (username or password). The error message is always in english: "The authentication has failed, please login again." The error message should be localized, too.
Is it the SAML login or the default login?
(In reply to Florian Best from comment #2) > Is it the SAML login or the default login? It's the non SAML login.
Here is a patch: diff --git a/management/univention-management-console/src/univention/management/console/protocol/session.py b/management/univention-management-console/src/univention/management/console/protocol/session.py index 71bdc97d6e..4e939e4aff 100644 --- a/management/univention-management-console/src/univention/management/console/protocol/session.py +++ b/management/univention-management-console/src/univention/management/console/protocol/session.py @@ -977,6 +977,7 @@ def handle(self, request): » » » from univention.management.console.protocol.server import Server » » » Server.reload() » » » try: +» » » » request.body['locale'] = str(self.i18n.locale) » » » » self.__auth.authenticate(request) » » » except (TypeError, KeyError): » » » » response = Response(request)
Just as an addition: The message that appears if a password change is required is also always in english.
Okay, I applied the hotfix because it works :-D I am not really happy with the solution but maybe it can be improoved on another bug squashing day. univention-management-console.yaml d47a9952e93e | YAML Bug #49029 univention-management-console (11.0.4-11) 42788197f065 | Bug #49029: fix translation of authentication messages
I hope the ucs-test are not using an german connection ! :-P
* Functional test: Ok * Advisory: Ok
I fixed the language of the broken test cases: ucs-test (9.0.2-31) 6c1f66938bfc | Bug #49029: set english language in test cases
<http://errata.software-univention.de/ucs/4.4/70.html>
*** Bug 44737 has been marked as a duplicate of this bug. ***