Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't require report format for XML report #1466

Merged
merged 4 commits into from
Mar 28, 2021
Merged

Don't require report format for XML report #1466

merged 4 commits into from
Mar 28, 2021

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Mar 26, 2021

What:

Allow to download the XML report without having to install the XML
report format plugin which actually does nothing.

Why:

Remove GOS specific patch.

How did you test it:
This can be tested by deleting the XML report format and trying to access a report.
Without the patch the get_reports command will fail with a 404 error message:
"Failed to find report format 'a994b278-1f62-11e1-96ac-406186ea4fc5'" while
the XML can be fetched if no report format is selected.

Checklist:

Allow to download the XML report without having to install the XML
report format plugin which actually does nothing.
@bjoernricks bjoernricks requested a review from a team as a code owner March 26, 2021 13:04
@bjoernricks bjoernricks added the backport-to-main This pull request will be ported to the master branch label Mar 26, 2021
An additional check if get_reports_data->format_id is not NULL is added
to the manage_send_report call because older clang versions do not
recognize that this is covered by checking no_report_format.
Some of the lines recently added were too long, so they were reformatted
to be shorter than 80 characters.
Copy link
Member

@timopollmeier timopollmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the patch works and I've fixed the clang static analyzer warning as well as some small formatting issues I found.
I've also added my way to test this to the PR description.

@bjoernricks
Copy link
Contributor Author

@timopollmeier thanks so much! More then I've ever expected.

@bjoernricks bjoernricks merged commit 6d1a215 into greenbone:gvmd-21.04 Mar 28, 2021
@bjoernricks bjoernricks deleted the dont-require-report-format-for-xml-output branch March 28, 2021 11:19
timopollmeier added a commit that referenced this pull request Mar 29, 2021
Don't require report format for XML report (bp #1466)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-main This pull request will be ported to the master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants