Bridge.id should be long, not int
gwidion opened this issue · 4 comments
gwidion commented
When I have a trigger job, using REST API returns long id value:
curl --header "PRIVATE-TOKEN: XXX" "https://gitlab.com/api/v4/projects/YYYY/pipelines/ZZZ/bridges"
result:
[{"id":6747393391,"status":"manual"...
when calling
pipelineApi.getBridgesForPipeline(projectId, pipelineId, 20, null)
I get an error:
Numeric value (6747393391) out of range of int (-2147483648 - 2147483647)
at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 18] (through reference chain: java.util.ArrayList[0]->org.gitlab4j.api.models.Bridge["id"]) [GitLabApiException]
gwidion commented
The same will apply to DownstreamPipeline.id
gwidion commented
FYI @Salomon88
gwidion commented
That's right, I didn't notice that. Thanks.