Skip to content

400 Error on creating new vulnerability #151

@SeanWrightFeat

Description

@SeanWrightFeat

The defect may already be reported! Please search for the defect before creating one.

Current Behavior:

When you attempt to create a new vulnerability (Vulnerabilities -> Create vulnerability) , you receive a 400 error. Upon view the network logs the following response is returned in the error:

Cannot deserialize value of type `org.dependencytrack.model.Cwe` from Array value (token `JsonToken.START_ARRAY`)
 at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 348] (through reference chain: org.dependencytrack.model.Vulnerability["cwe"])

Steps to Reproduce:

  1. Navigate to the Vulnerabilities section.
  2. Click on the Create vulnerability button
  3. Click on the Create button (I did fill in all the details, but you can reproduce the same error by not completing any details)

Expected Behavior:

No errors to occur and for the new vulnerability to be created.

Environment:

  • Dependency-Track Version: 4.5.0
  • Distribution: Docker
  • BOM Format & Version: N/A
  • Database Server: PostgreSQL
  • Browser: Brave (version 1.38.119) and Firefox (version 100.0.1)

Additional Details:

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions