Avoid Portal to crash with bad GrantSession rule
Summary
Set a bad GrantSession rule like : $uid n 'rtyler'
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Module Lemonldap::NG::Portal::Plugins::GrantSession loaded
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] GrantRule key -> Message##New rule
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] GrantRule value -> $uid n 'rtyler'
Bareword found where operator expected at (eval 222) line 1, near "} n"
(Missing operator before n?)
String found where operator expected at (eval 222) line 1, near "n 'rtyler'"
(Do you need to predeclare n?)
[Sun May 10 14:14:03 2020] [LLNG:8256] [error]
[Sun May 10 14:14:03 2020] [LLNG:8256] [error] Bad grantSession rule -> ???
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] [error] Bad grantSession rule -> ???
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Declaring unauth route
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Add GET route:
[Sun May 10 14:14:03 2020] [LLNG:8256] [warn] Route "*" redefined
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] route * added
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Add POST route:
[Sun May 10 14:14:03 2020] [LLNG:8256] [warn] Route "*" redefined
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] route * added
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Add PUT route:
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] route * added
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Add PATCH route:
[Sun May 10 14:14:03 2020] [LLNG:8256] [error] Conflict detected between 2 extensions, aborting 1 route
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Add DELETE route:
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] route * added
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Declaring auth route
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Add GET route:
[Sun May 10 14:14:03 2020] [LLNG:8256] [warn] Route "*" redefined
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] route * added
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Add POST route:
[Sun May 10 14:14:03 2020] [LLNG:8256] [warn] Route "*" redefined
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] route * added
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Add PUT route:
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] route * added
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Add PATCH route:
[Sun May 10 14:14:03 2020] [LLNG:8256] [error] Conflict detected between 2 extensions, aborting 1 route
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] Add DELETE route:
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] route * added
[Sun May 10 14:14:03 2020] [LLNG:8256] [error] Underlying object can't load conf (Lemonldap::NG::Portal::Main->reloadConf)
[Sun May 10 14:14:03 2020] [LLNG:8256] [error] Initialization failed: Unable to protect this server (Lemonldap::NG::Common::Conf::Backends::File loaded.
Get remote configuration (localStorage unavailable).
Get configuration 2.)
[Sun May 10 14:14:03 2020] [LLNG:8256] [error] Initialization failed! Enable debug logs, reload your web server and catch main error...
[Sun May 10 14:14:03 2020] [LLNG:8256] [warn] [anonymous] Initialization failed! Enable debug logs, reload your web server and catch main error...
[Sun May 10 14:14:03 2020] [LLNG:8256] [debug] [warn] [anonymous] Initialization failed! Enable debug logs, reload your web server and catch main error...
[Sun May 10 14:14:03 2020] [LLNG:8256] [error] Error 500: Initialization failed! Enable debug logs, reload your web server and catch main error...