LemonLDAPNG / apache-session-mongodb

Implementation of Apache::Session which uses MongoDB as backend
https://metacpan.org/pod/Apache::Session::MongoDB
Other
2 stars 2 forks source link

Make sure searchOn and GKFAS return an arrayref #8

Closed maxbes closed 5 years ago

maxbes commented 5 years ago

All Apache::Session::Browseable modules return an empty array ref when searchOn cannot find any sessions. Except this one which returns "undef"

This is causing issues when using LemonLDAP::NG in a REST session configuration because the Apache::Session::REST will crash on invalid JSON if an empty string is returned by Lemonldap::NG::Portal::Plugins::RESTServer.

This commit will make RESTServer return '{}' instead, which is correct JSON and will not crash Apache::Session::REST