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

Update scan and file Rest endpoints to return proper error codes #123

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

AHabes
Copy link
Contributor

@AHabes AHabes commented Oct 3, 2023

What is the purpose of this change?

To update the APIs below so they return proper error codes rather than 500 codes.

/api/v2/ema/scan
api/v2/ema/scan/query
/api/v2/ema/file/query

How was this change implemented?

By updating the RestErrorHandler, ClientException and other related classes

How was this change tested?

By running scans and imports both in online and disconnected modes. Also, test the APIs using Swagger UI

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

N/A

@AHabes AHabes temporarily deployed to build_pr October 3, 2023 19:51 — with GitHub Actions Inactive
@sonarqube-solacecloud
Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition 69.2% 69.2% Coverage on New Code (is less than 80%)

See analysis details on SonarQube

@AHabes AHabes merged commit ad27b01 into main Oct 5, 2023
5 of 6 checks passed
@mo-radwan1 mo-radwan1 deleted the fix-incorrect-status-code-returned-in-some-apis branch May 7, 2024 18:20
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