Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bridge.id should be long, not int #1118

Closed
gwidion opened this issue Apr 30, 2024 · 4 comments
Closed

Bridge.id should be long, not int #1118

gwidion opened this issue Apr 30, 2024 · 4 comments

Comments

@gwidion
Copy link

gwidion commented Apr 30, 2024

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
Copy link
Author

gwidion commented Apr 30, 2024

The same will apply to DownstreamPipeline.id

@gwidion
Copy link
Author

gwidion commented Apr 30, 2024

FYI @Salomon88

@jmini
Copy link
Collaborator

jmini commented May 2, 2024

This is addressed by #1113, not?

@gwidion
Copy link
Author

gwidion commented May 2, 2024

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

@gwidion gwidion closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants