View Issue Details

IDProjectCategoryView StatusLast Update
0001081bareos-core[All Projects] apipublic2019-04-29 16:28
ReporterDerMannMitDemHutAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSDebianOS Version9
Product Version18.2.5 
Target VersionFixed in Version 
Summary0001081: api mode json returns empty result
DescriptionWhile 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": {}
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-04-29 16:28 DerMannMitDemHut New Issue