In Aria Suite Lifecycle Manager we are unable to 'pull request' from Github Enterprise cloud (github.com) as Source Control. It fails with error:
2024-12-18 19:35:19.838 ERROR <FQDN> --- [ContentAsync-25] c.v.b.s.g.GitHubServiceImpl [pullRequest] : Client Exception : response body - {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"A pull request already exists for ####-innersource:vLCM_Content_Req_6295_UUID."}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request","status":"422"}
2024-12-18 19:35:19.838 ERROR
<FQDN>
--- [ContentAsync-25] c.v.b.s.g.GitHubServiceImpl [pullRequest] : Client Exception : response status - 422 UNPROCESSABLE_ENTITY2024-12-18 19:35:19.838 ERROR
<FQDN>
--- [ContentAsync-25] c.v.b.s.g.GitHubServiceImpl [pullRequest] : Failed to create merge request on github branch with name [vLCM_Content_Req_6295_UUID_1] org.springframework.web.client.HttpClientErrorException$UnprocessableEntity: 422 Unprocessable Entity
at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:99)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:122)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:102)
Aria Suite Lifecycle Manager 8.12 and later.
The response for the pull request creation includes an id
value that exceeds the size limit of a Java integer.
In LCM, we have a REST client configured to retry API calls in case of failures. Due to the oversized id
value, an exception is triggered, leading the REST client to repeatedly attempt creating the pull request, which is causing the issue.
The fix will be available in the release 8.18 Patch-2.
To resolve the issue, please replace the Jar file with the one provided in this KB.
Replace the jar file:
Steps to apply the jar :
/opt/vmware/vlcm/blackstone/spring-common
The above steps should enable us to add Github Enterprise cloud (github.com) as Source Control in Aria Suite Lifecycle Manager.