[rt-users] Update to RT 4.2.1 -> JSON error after login

Dr. Dirk Pape pape at drdpc.de
Fri Nov 22 05:19:51 EST 2013


Hello,

with some testing I found a workaround for which I don't know, if it is a bug fix.
I found, if I patch html/Elements/JavascriptConfig the following way, my server lets me in without error.
strange enough my productive server has the same file which is working fine there.

I would appreciate, if anybody can explain me what is happening.

Dirk

> --- html/Elements/JavascriptConfig.orig 2013-11-22 11:13:20.000000000 +0100
> +++ html/Elements/JavascriptConfig      2013-11-22 11:13:09.000000000 +0100
> @@ -56,7 +56,7 @@
>        for qw(id Name EmailAddress RealName);
>  
>      $CurrentUser->{Privileged} = $session{CurrentUser}->Privileged
> -        ? JSON::true : JSON::false;
> +        ? 0 : 1;
>  
>      $Config->{WebHomePath} = RT->Config->Get("WebPath")
>          . (!$session{CurrentUser}->Privileged ? "/SelfService" : "");



Am 22.11.2013 um 09:28 schrieb Dr. Dirk Pape <pape at drdpc.de>:

> In the Log:
>> [13817] [Fri Nov 22 08:17:15 2013] [error]: encountered object '1', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE method missing) at /usr/local/share/perl/5.10.1/JSON.pm line 154.





More information about the rt-users mailing list