lemonldap-ng-cli restore does not work if the config backend is empty
Environment
LemonLDAP::NG version: 2.0.9
Summary
lemonldap-ng-cli save > saved.json
rm -f /var/lib/lemonldap-ng/conf/*json
lemonldap-ng-cli restore - < saved.json
- FAIL
Logs
Result dump :
$VAR1 = [
500,
[
'Content-Type',
'application/json; charset=utf-8'
],
[
'{"error":"Configuration without cfgNum"}'
]
];
Manager lib does not return a 200 code, aborting at /usr/share/perl5/Lemonldap/NG/Common/PSGI/Cli/Lib.pm line 155.
Backends used
This happens on Conf::File, Conf::MongoDB, and probably all other conf backends