Skip to content

Bug - GitLab Issues failing to get created from SCA_RiskReport results. #447

@wi06502

Description

@wi06502

trying to push result to GitLab Issues and failing after we upgraded to latest version 1.7.07, looks like it may have been an issue since version 1.7.01

failing to process the SCA_RiskReport xml file getting the following error:
2025-03-17T18:46:26.859Z ERROR 1018 --- [ main] com.checkmarx.flow.service.SCAScanner : org.glassfish.jaxb.runtime.v2.runtime.IllegalAnnotationsException: 5 counts of IllegalAnnotationExceptions
Property criticalVulnerabilityCount is present but not specified in @XmlType.propOrder
this problem is related to the following location:
at protected byte com.checkmarx.sdk.dto.sca.xml.RiskReportSummaryType.criticalVulnerabilityCount
at com.checkmarx.sdk.dto.sca.xml.RiskReportSummaryType
at protected com.checkmarx.sdk.dto.sca.xml.RiskReportSummaryType com.checkmarx.sdk.dto.sca.xml.SCARiskReportType.riskReportSummary

I believe the issue is with the following file: src/main/java/com/checkmarx/sdk/dto/sca/xml/RiskReportSummaryType.java.
The XmlType for the propOrder item "CriticalVulnerabilityCount" does not align with the protected byte name defined for the @xmlelement

on line 65
the following "CriticalVulnerabilityCount",
should be "criticalVulnerabilityCount",

Note: the following file may have the same issue in this file as well "src/main/java/com/checkmarx/sdk/dto/sca/xml/PackageType.java"
at Line 64
the following "CriticalVulnerabilityCount",
should be "criticalVulnerabilityCount",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions