[#9507] Fatal error changing the language
Summary Fatal error changing the language
Queue Horde Base
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz@horde.org
Requester jan@horde.org
Created 2011-01-12 (3466 days ago)
Due
Updated 2011-01-24 (3454 days ago)
Assigned 2011-01-14 (3464 days ago)
Resolved 2011-01-24 (3454 days ago)
Milestone
Patch No

Comments
Jan Schneider <jan@horde.org> 2011-01-12 11:08:18
When changing the language preference, I get:

User is not authorized

1. Horde_Core_Prefs_Ui->handleForm() 
/home/jan/horde-git/horde/services/prefs.php:27
2. Horde_Core_Prefs_Ui->_handleForm() 
/home/jan/horde-git/framework/Core/lib/Horde/Core/Prefs/Ui.php:213
3. Horde_Registry->callAppMethod() 
/home/jan/horde-git/framework/Core/lib/Horde/Core/Prefs/Ui.php:325
4. call_user_func_array() 
/home/jan/horde-git/framework/Core/lib/Horde/Registry.php:1017
5. Horde_Application->prefsCallback()
6. Horde_Prefs_Ui->prefsCallback() 
/home/jan/horde-git/horde/lib/Application.php:117
7. Horde_Registry->callAppMethod() 
/home/jan/horde-git/horde/lib/Prefs/Ui.php:175
8. Horde_Registry->pushApp() 
/home/jan/horde-git/framework/Core/lib/Horde/Registry.php:1014


Git Commit <commits@lists.horde.org> 2011-01-12 19:10:45
Changes have been made in Git for this ticket:

Bug #9507: Only do language change callback to authenticated apps

http://git.horde.org/horde-git/-/commit/f974d54faad1a8908ccb9259a7b90a2354993465

Michael Slusarz <slusarz@horde.org> 2011-01-12 19:13:52
Sounds like the change language callback is trying to be run on a n 
application that is not authenticated to (e.g. imp).  This should be 
fixed.

Although this raises a question: is the changeLanguage API call 
designed to potentially alter all stored data for an application (e.g. 
in persistent storage)?  Or is it understood to only be useful for 
changing the language for any data created for use in the current 
session?

Jan Schneider <jan@horde.org> 2011-01-12 22:03:54
Good question. It was added for in-session changes. One could 
theoretically use it for persistant storage too, but I haven't come 
across such a need yet.

Git Commit <commits@lists.horde.org> 2011-01-13 19:12:48
Changes have been made in Git for this ticket:

Ticket #9507: Clarify changeLanguage() behavior

http://git.horde.org/horde-git/-/commit/519291ec3de41d0a76d2506efe06ea167422b7ab

Michael Slusarz <slusarz@horde.org> 2011-01-13 19:13:45
Dealing with authentication to non-auth'd apps would be a very large 
undertaking.  The simpler solution for now is clearly indicating the 
method's behavior in the API documentation.

Jan Schneider <jan@horde.org> 2011-01-14 12:53:12
I don't get that error any more, but translations don't work anymore 
either. :)

Michael Slusarz <slusarz@horde.org> 2011-01-14 18:32:53
> I don't get that error any more, but translations don't work anymore 
> either. :)

I don't see this.  Changing the language works for me.  i.e. Default 
(English) -> Deutsch gets me German.  Changing from German -> English 
changes back.  Changing from German ->Default does nothing (it remains 
German), but that is expected.

Jan Schneider <jan@horde.org> 2011-01-22 17:10:13
The problem is that the language selected at the login screen takes 
precedence over the preference value now.

Git Commit <commits@lists.horde.org> 2011-01-24 23:44:23
Changes have been made in Git for this ticket:

Bug #9507: Pref language overrides login language

http://git.horde.org/horde-git/-/commit/49a029c817c3c855fc9a92fff406bc65bcd06711