You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The
setProjectRepositoryDetails
method (in theCxService
class) has a hard-coded error message for when the request fails:This should be changed to report the error message from the response body. For example, given the following response:
CxFlow should report the
messageDetails
(and, possibly, themessageCode
) in the log.The text was updated successfully, but these errors were encountered: