Missing data using remote api and json/xml encode

If a request is done with remote api ( https://myserver:10000/virtual-server/remote.cgi?program=list-scheduled-... ) using just mulitline I've got that : 13070871005635: Domains: ...some-domain... Include sub-servers: Yes Destination: /home/me/backup/daily.bak Features: All Format: Single archive file Incremental: No Enabled: Yes ...

but if I used json or xml (https://myserver:10000/virtual-server/remote.cgi?program=list-scheduled-...) the first value element in the list will be empty like that: { "status" : "success", "data" : [ { "value" : "", "name" : "13070871005635" }, { "name" : "13070871595741:", "values" : { "features" : [ "All" ], "include_sub-servers" : [ "Yes" ], ...

Status: 
Closed (fixed)

Comments

Thanks for pointing this out ... this is a bug in the output format of list-scheduled-backups , which I'll fix in the next release.

maybe you've got a quick fix?

another question, your multiline format is really similar YAML specifications, why don't you use it to simplify conversion between format?

ps : virtualmin is a really good solution, thank you Mister Cameron

The quick fix is to edit the file /usr/share/webmin/virtual-server/list-scheduled-backups.pl and change line 77 to :

                print "$s->{'id'}\n";

thx, work perfectely!

Automatically closed -- issue fixed for 2 weeks with no activity.