SoftwareDesignLab / SBOM-in-a-Box

SBOM-in-a-Box is a unified platform to promote the production, consumption, and utilization of Software Bills of Materials.
MIT License
9 stars 0 forks source link

Vex: Unable to generate any data #275

Closed JorWo closed 1 year ago

JorWo commented 1 year ago

Describe the bug While using the SVIP UI, an error is thrown when trying to generate data with the Vex feature.

To Reproduce Steps to reproduce the behavior:

  1. Import any SBOM
  2. Select the SBOM and press the Vex button
  3. Choose any combination of options in the modal and press the "Generate Data" button
  4. The following error should be thrown in the SVIP API console:
    svip-api    | 2023-10-11T22:22:16.724Z  WARN 1 --- [nio-8080-exec-7] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; For input string: "[objectObject]"]

Expected behavior No error should be thrown.

Additional context The issue might start from VEXController.java's request parameter for the id which of type Long.

dlg1206 commented 1 year ago

Related Issue: #279