Skip to content

Schema Validation errors not shown in UI #1006

Open

Description

@stephan-wolf-ais

Current Behavior

Upon invalid bom upload an error message is shown as shown

image

Steps to Reproduce

  1. upload an invalid bom

Expected Behavior

the error message from the result should be shown as well

i.e. errors from the result json like this:

{
"status": 400,
"title": "The uploaded BOM is invalid",
"detail": "Schema validation failed",
"errors": [
"$.metadata.timestamp: does not match the date-time pattern must be a valid RFC 3339 date-time"
]
}

Dependency-Track Frontend Version

4.7.x

Browser

Google Chrome

Browser Version

No response

Operating System

Linux

Checklist

Activity

  1. added
    defect
    on Sep 17, 2024
  2. nscuro commented on Sep 17, 2024

    @nscuro
    Member

    This is somewhat on purpose, because the screen real estate of the popups is very small, but validation failure messages are long. Also, large BOMs with many i valid entries amplify this issue.

    I guess the main challenge is to find another way to display all validation errors, in a way that is not purely limited by screen space.

  3. added
    p2
    good first issue
    size/S
    and removed on Sep 17, 2024
  4. stephan-wolf-ais commented on Sep 17, 2024

    @stephan-wolf-ais
    ContributorAuthor

    An idea could be an upload dialog including i.e. a progress bar for the upload process and a textbox to show the result of the upload request. This would also be helpfull for large bom files

  5. added
    hacktoberfest
    on Sep 26, 2024
  6. removed
    good first issue
    hacktoberfest
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectp2size/S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions