Hi,
I’m using Greenbone Community Containers with the recommended docker-compose setup. I have used gvm-tools container to run gvm-cli commands and managed to run some scans.
I can see results and download PDF reports through UI, but when trying to get the same report using gvm-cli’s <get_reports> command, the resulted pdf-file’s only real contents is the first paragraph under Summary. Rest of the two paged document is empty and only shows boilerplate texts and empty result -table under Result Overview and Result per Host topics. All actual results are missing.
This only happens with the gvm-cli, reports downloaded through UI are fine.
Docs talk about “lean” attribute that requests a reduced report, but it doesn’t seem to change the PDF report output.
https://docs.greenbone.net/API/GMP/gmp-22.6.html#command_get_reports
Am I missing something obvious here?
$ gvm-cli --gmp-username $USER --gmp-password $PASS socket --xml '<get_version/>'
<get_version_response status="200" status_text="OK"><version>22.6</version></get_version_response>
$ gvm-cli --gmp-username $USER --gmp-password $PASS socket --xml '<get_reports report_id="UUIDHERE" format_id="c402cc3e-b531-11e1-9163-406186ea4fc5"/>'
<get_reports_response status="200" status_text="OK">...LONG_XML_FILE_INCLUDING_BASE64_ENCODED_REPORT_CONTENTS...</get_reports_response>