gitlab4j/gitlab4j-api

Bridge.id should be long, not int

gwidion opened this issue · 4 comments

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]

The same will apply to DownstreamPipeline.id

jmini commented

This is addressed by #1113, not?

That's right, I didn't notice that. Thanks.