Skip to content

Bridge.id should be long, not int #1118

@gwidion

Description

@gwidion

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions