JSON encoding issue
Concerned version
Version: 1.9.16
Platform:
Debian Stretch: Linux version 4.9.0-6-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07)
apache2 2.4.25-3+deb9u4
libjson-maybexs-perl 1.003008-1
libjson-perl 2.90-1
libjson-xs-perl 3.030-1
Summary
Happened when trying to get OpenID Connect Service to work. I got "Error occurs on the server" message when I tried to load http://auth.example.com/.well-known/openid-configuration in a browser. Same error happened when I tried OpenID Connect implicit flow with response types ["id_token", "token"] or ["id_token"].
It looks like a similar issue was fixed in the past #1294 (closed)
As a person with no knowledge about perl I'd say that parameter { allow_nonref => 1 }
must be added to to_json() calls most likely.
Logs
Error line is here. More in an attachment: lemonldap.log
[Mon Jun 11 11:06:50.779805 2018] [:error] [pid 11820:tid 140419451623168] hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at /usr/share/perl5/JSON.pm line 154, <DATA> line 755.\n