Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001007bareos-core[All Projects] apipublic2018-09-12 15:232018-09-13 13:57
ReporterIvanBayan 
Assigned Tojoergs 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformLinuxOSUbuntuOS Version16.04
Product Version17.2.4 
Target VersionFixed in Version 
Summary0001007: JSON API: 'list files' returns malformed json
DescriptionFile listing of some jobs returns malformed json:

Steps To Reproduce$echo -e '.api 2\nlist files jobid=799'|sudo bconsole
Connecting to Director localhost:9101
1000 OK: mia-backup03-dir Version: 17.2.4 (21 Sep 2017)
Enter a period to cancel a command.
.api 2
{
  "jsonrpc": "2.0",
  "id": null,
  "result": {
    "api": 2
  }
}list files jobid=799
{
  "jsonrpc": "2.0",
  "id": null,
  "result": {
    "filenames": [
      {
        "filename": "/usr/sbin/pg_updatedicts"
      },
      {
        "filename": "/usr/sbin/"
      },
      {
        "filename": "/usr/sbin/tzconfig"
.....
      {
        "filename": "/var/lib/systemd/deb-systemd-helper-enabled/postgresql.service.dsh-also"
      },
      {},
      {},
      {},
      {},
      {},
.....
      {},
      {
        "nfo/right/america/antigua": "/usr/share/zoneinfo/right/America/Grand_Turk"
      },
      {
        "nfo/right/america/antigua": "/usr/share/zoneinfo/right/America/Cordoba"
      },
      {
        "nfo/right/america/antigua": "/usr/share/zoneinfo/right/America/Thule"
.......
      {
        "rade-scripts/specification": "/usr/share/doc/postgresql-common/changelog.gz"
      },
      {
        "rade-scripts/specification": "/usr/share/doc/postgresql-common/NEWS.Debian.gz"
      },
      {
        "rade-scripts/specification": "/usr/share/doc/postgresql-common/README.Devel"
      },
      {
        "rade-scripts/specification": "/usr/share/doc/postgresql-common/architecture.html"
      },
      {
        "rade-scripts/specification": "/usr/share/doc/postgresql-common/README.systemd"
      },
      {
        "rade-scripts/specification": "/usr/share/doc/postgresql-common/copyright"
      },
      {
        "rade-scripts/specification": "/usr/share/doc/postgresql-common/dependencies.png"
.....
TagsNo tags attached.
bareos-master: impact
bareos-master: 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
Attached Files? file icon 799_list [^] (93,437 bytes) 2018-09-13 13:57 [Show Content]

- Relationships

-  Notes
(0003105)
joergs (administrator)
2018-09-13 13:51

This looks strange. Can you provide the output of the file list in API mode 0?

$echo -e 'list files jobid=799'|sudo bconsole
(0003106)
IvanBayan (reporter)
2018-09-13 13:57

I've just attached bconsole output.

- Issue History
Date Modified Username Field Change
2018-09-12 15:23 IvanBayan New Issue
2018-09-13 13:48 joergs Assigned To => joergs
2018-09-13 13:48 joergs Status new => assigned
2018-09-13 13:51 joergs Note Added: 0003105
2018-09-13 13:51 joergs Status assigned => feedback
2018-09-13 13:57 IvanBayan File Added: 799_list
2018-09-13 13:57 IvanBayan Note Added: 0003106
2018-09-13 13:57 IvanBayan Status feedback => assigned


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker