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

Handle BOM validation errors #762

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Mar 4, 2024

Description

Handles BOM validation errors as introduced in DependencyTrack/dependency-track#3522.

Instead of displaying a generic error message for all responses with status code >= 400, display a human-readable error description when RFC 9457 problem details are returned.

Addressed Issue

Relates to DependencyTrack/dependency-track#3218

Additional Details

Individual validation errors are returned by the API, but not currently displayed by the frontend. This is because multiple validation errors can be returned, and each error message can be rather long. We simply don't have the screen real-estate at the moment to display all of that.

Screenshot 2024-03-04 at 22 12 46

Screenshot 2024-03-04 at 22 12 57

Screenshot 2024-03-04 at 22 13 21

Screenshot 2024-03-04 at 22 13 30

Checklist

Instead of displaying a generic error message for all responses with status code >= 400, display a human-readable error description when RFC 9457 problem details are returned.

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro added the enhancement New feature or request label Mar 4, 2024
@nscuro nscuro added this to the 4.11 milestone Mar 4, 2024
@nscuro nscuro merged commit 37ebd67 into DependencyTrack:master Mar 10, 2024
10 checks passed
@nscuro nscuro deleted the issue-3218 branch March 10, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant