View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001081 | bareos-core | api | public | 2019-04-29 16:28 | 2019-07-02 15:48 |
| Reporter | DerMannMitDemHut | Assigned To | joergs | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Linux | OS | Debian | OS Version | 9 |
| Product Version | 18.2.5 | ||||
| Summary | 0001081: api mode json returns empty result | ||||
| Description | While trying to use python-bareos I discovered that the api return empty results in json mode while mode 1 returns the expected result. An example for that would be: *.api 0 api: 0 *.status client=nexus-fd Connecting to Client nexus-fd at 172.32.0.223:9102 Handshake: Immediate TLS, Encryption: ECDHE-PSK-CHACHA20-POLY1305 nexus-fd Version: 18.2.5 (30 January 2019) Linux-4.4.92-6.18-default debian Debian GNU/Linux 9.7 (stretch) Daemon started 28-Feb-19 09:09. Jobs: run=60 running=0, bareos.org build binary Heap: heap=32,768 smbytes=18,677 max_bytes=2,244,917 bufs=74 max_bufs=152 Sizeof: boffset_t=8 size_t=8 debug=0 trace=0 bwlimit=0kB/s Running Jobs: bareos-dir (director) connected at: 29-Apr-19 16:24 No Jobs running. ==== Terminated Jobs: JobId Level Files Bytes Status Finished Name ====================================================================== 17871 Incr 1,221 93.58 M OK 19-Apr-19 23:06 nexus-job 17887 Diff 41,385 730.7 M OK 20-Apr-19 23:22 nexus-job 17903 Incr 158 90.40 M OK 21-Apr-19 23:07 nexus-job 17919 Incr 1,678 99.46 M OK 22-Apr-19 23:06 nexus-job 17935 Incr 1,564 117.7 M OK 23-Apr-19 23:07 nexus-job 17951 Incr 1,801 106.0 M OK 24-Apr-19 23:07 nexus-job 17969 Incr 1,297 98.93 M OK 25-Apr-19 23:06 nexus-job 17991 Incr 5,041 120.1 M OK 26-Apr-19 23:07 nexus-job 18007 Diff 47,691 804.2 M OK 27-Apr-19 23:25 nexus-job 18023 Incr 159 90.61 M OK 28-Apr-19 23:06 nexus-job ==== *.api json { "jsonrpc": "2.0", "id": null, "result": { "api": 2 } }*status client=nexus-fd { "jsonrpc": "2.0", "id": null, "result": {} | ||||
| Tags | No tags attached. | ||||
| Yes, this is a known limitation. Only a subset of the bconsole command can do JSON output. See https://docs.bareos.org/DeveloperGuide/api.html?highlight=json#api-mode-2-json | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-04-29 16:28 | DerMannMitDemHut | New Issue | |
| 2019-07-02 15:48 | joergs | Assigned To | => joergs |
| 2019-07-02 15:48 | joergs | Status | new => closed |
| 2019-07-02 15:48 | joergs | Resolution | open => fixed |
| 2019-07-02 15:48 | joergs | Note Added: 0003398 |