Skip to content

A bug in projects API while getting all projects using getProjects() #305

@Iruora

Description

@Iruora

Hello, here in the documentation you will find this caution which is not handled in the Pager class.
This exception appears when invoking getProjects() method from the ProjectApi :


org.gitlab4j.api.GitLabApiException: Missing 'X-Total-Pages' header from server


issue


Caution: For performance reasons since GitLab 11.8 and behind the api_kaminari_count_with_limit feature flag, if the number of resources is more than 10,000, the X-Total and X-Total-Pages headers as well as the rel="last" Link are not present in the response headers.


Best regards. 👍

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