Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

first parameter is not customizable when using the getAll option in list method #457

@axelfahy

Description

@axelfahy

Description

When using the list method of entities with the getAll parameter, the first parameter is overwritten.

For example, trying to run:

reports = opencti_api_client.report.list(
    first=200,
    withPagination=True,
    orderBy="published",
    orderMode="desc",
    getAll=True,
)

will not fetch the report 200 by 200 since the first value is overwritten:

if get_all:
first = 100

This is the same for the list method of all entities.

Environment

  1. OS (where OpenCTI server runs): pycti client
  2. OpenCTI version: pycti==5.8.7
  3. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. List entities with the getAll parameter and the first parameter
  2. Observe that the first parameter has been changed.

Expected Output

I expected to be able to specify the first and the getAll parameter.

Actual Output

Number of queries done is not the one expected since the first parameter has been changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureuse for describing a new feature to developsolveduse to identify issue that has been solved (must be linked to the solving PR)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions