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

DATAGO-59386: Fix NPE when calling api/v2/ema/scan REST API #111

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

gregmeldrum
Copy link
Collaborator

@gregmeldrum gregmeldrum commented Aug 11, 2023

What is the purpose of this change?

When a scan has been recently initiated, calling the api/v2/ema/scan API would result in a NPE

How was this change implemented?

When a scan is started, the scan status was not initialized. This fix initializes the scan status for each scan type to INITIATED.

How was this change tested?

Manual tested by initiating a scan and calling the scan API directly afterwards.
Also added an automated test that asserts the scan type is initialized as expected.

Is there anything the reviewers should focus on/be aware of?

No

@gregmeldrum gregmeldrum temporarily deployed to build_pr August 11, 2023 13:11 — with GitHub Actions Inactive
@sonarqube-solacecloud
Copy link

@gregmeldrum gregmeldrum merged commit 819df58 into main Aug 11, 2023
6 checks passed
@gregmeldrum gregmeldrum deleted the greg/scan_status_NPE branch August 11, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants