Skip to content

Failed parsing of file should be flagged in the project #2890

Open

Description

@geirhede

Current Behavior

When uploading a cyclonedx 1.5 format file, the file is seemingly received, but will silently fail in the background as it is parsed.

Steps to Reproduce

  1. Upgrade cdxgen to 9.1.1, which will create a cyclonedx 1.5 file
  2. Upload file through /api/v1/bom . This returns 200 ok, just as the same configuration with cxdgen 8.6.1, which works, does
  3. The file will be parsed asynchronously, and fail because the format is not supported.
  4. The gui will stay stable, and the only hint that something is off is that the last uploaded field will not be updated

Expected Behavior

when parsing of a file fails for whatever reason I would have expected

  • a flag in the project gui saying that the last upload had problems, expanding to a description of the actual error if clicked. This is important because it will shorten the time the project team will spend trying to chase down something that doesn't work - or believing the old information in the gui, if the timestamp for the upload is not noticed.
  • the ability to download the last uploaded sbom, to see whether an integration has mangled the file
  • in the administration console, a log of asynchronous actions with an ok/error status, and the same information returned in the project gui. Parsing of the uploaded file is obviously an asynchronous operation. If it fails it would be good to see it somewhere else than the log.

Dependency-Track Version

4.8.1

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

Mozilla Firefox

Checklist

Activity

  1. added
    defect
    on Jul 16, 2023
  2. geirhede commented on Jul 16, 2023

    @geirhede
    Author

    Unsure whether this should be a defect or an improvement. As it caused our flow of vulnerability data to stop I landed on a defect.

  3. nscuro commented on Jul 17, 2023

    @nscuro
    Member

    This reads like a continuation of #2264.

    As of #2600 (DT v4.8.0), there is also a notification that will be sent when asynchronous BOM processing failed.

    I'll relabel as enhancement, as this is definitely new functionality that would need to be added.

  4. added
    enhancement
    and removed
    defect
    on Jul 17, 2023
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions