-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
The setProjectRepositoryDetails method (in the CxService class) has a hard-coded error message for when the request fails:
try {
log.info("Updating Source details for project Id {}", projectId);
restTemplate.exchange(cxProperties.getUrl().concat(PROJECT_SOURCE), HttpMethod.POST, requestEntity, String.class, projectId);
} catch (HttpStatusCodeException e) {
log.error("Error occurred while updating Project source info for project {}.", projectId);
throw new CheckmarxException("Error occurred while adding source details to project. Please ensure GIT is defined within Checkmarx");
}
This should be changed to report the error message from the response body. For example, given the following response:
{
"messageCode": 12331,
"messageDetails": "Failure occurred during GIT Browsing"
}
CxFlow should report the messageDetails (and, possibly, the messageCode) in the log.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels