Project

General

Profile

Actions

Bug #32776

closed

Host api request fails when thin=true and per_page=all

Added by Tomer Brisker almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Inventory
Target version:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1969263

Description of problem: Host api with per_page=all and thin=true raise an error. here is sample curl request

  1. curl -u admin:Password 'https://satellite.example.com/api/v2/hosts?per_page=all&thin=true&page=2' {
    "error": {"message":"Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs."}
    }

Version-Release number of selected component (if applicable): Satelliete 6.9

How reproducible: Always

Steps to Reproduce:
1. Log in to the satellite
2. Access the API https://satellite.example.com/api/v2/hosts?per_page=all&thin=true&page=2

Actual results: fails with error

Expected results: It should return host record

Additional info: This issue is only in satellite 6.9


Related issues 1 (0 open1 closed)

Related to Foreman - Refactor #29909: Support fetching all records in APIClosedOndřej PražákActions
Actions

Also available in: Atom PDF