Bad request with Notification SPA
Concerned version
Version: %2.0.X
Platform: All
Summary
handlerAbort && diffRule are undefined
Logs
Tue Apr 14 23:41:44 2020] [LLNG:4431] [debug] User 173668G was granted to access to /manager.psgi//psgi.js
[Tue Apr 14 23:41:44 2020] [LLNG:4431] [debug] User authenticated, calling handler()
[Tue Apr 14 23:41:44 2020] [LLNG:4431] [debug] Start routing psgi.js
Can't call method "diffRule" on an undefined value at /usr/share/perl5/Lemonldap/NG/Manager.pm line 175.
[pid: 4431|app: 0|req: 16608/36907] 192.168.40.151 () {50 vars in 927 bytes} [Tue Apr 14 23:41:44 2020] GET /manager.psgi//psgi.js => generated 755 bytes in 1 msecs (HTTP/1.1 200) 5 headers in 170 bytes (0 switches on core 0)
Trace begun at (eval 16) line 1
main::__ANON__('Can\'t locate object method "handlerAbort" via package "Lemonldap::NG::Manager::Notifications" at /usr/share/perl5/Lemonldap/NG/Manager/Notifications.pm line 95.^J') called at /usr/share/perl5/Lemonldap/NG/Manager/Notifications.pm line 95
Lemonldap::NG::Manager::Notifications::setNotifAccess('Lemonldap::NG::Manager::Notifications=HASH(0x55ce9fe4b718)', 'HASH(0x55ce9fe41bc8)') called at /usr/share/perl5/Lemonldap/NG/Manager/Notifications.pm line 42
Lemonldap::NG::Manager::Notifications::init('Lemonldap::NG::Manager::Notifications=HASH(0x55ce9fe4b718)', 'HASH(0x55ce9fe41bc8)') called at /usr/share/perl5/Lemonldap/NG/Manager.pm line 228
Lemonldap::NG::Manager::loadPlugin('Lemonldap::NG::Manager=HASH(0x55cea1e6dd00)', 'Lemonldap::NG::Manager::Notifications', 'HASH(0x55ce9fe41bc8)') called at /usr/share/perl5/Lemonldap/NG/Manager.pm line 66
Lemonldap::NG::Manager::init('Lemonldap::NG::Manager=HASH(0x55cea1e6dd00)', 'HASH(0x55cea03d7720)') called at /usr/share/perl5/Lemonldap/NG/Common/PSGI.pm line 304
Lemonldap::NG::Common::PSGI::run('Lemonldap::NG::Manager', 'HASH(0x55cea03d7720)') called at /usr/share/lemonldap-ng/manager/htdocs/manager.psgi line 5
Backends used
Possible fixes
Extend PSGI::Router and test if viewer is enabled