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 #1

Updated by Tomer Brisker almost 3 years ago

Actions #2

Updated by Dominik Matoulek almost 3 years ago

  • Assignee set to Dominik Matoulek
Actions #3

Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8595 added
Actions #4

Updated by The Foreman Bot almost 3 years ago

  • Fixed in Releases 3.0.0 added
Actions #5

Updated by The Foreman Bot almost 3 years ago

  • Fixed in Releases deleted (3.0.0)
Actions #6

Updated by Tomer Brisker almost 3 years ago

  • Fixed in Releases 3.0.0 added
Actions #7

Updated by Dominik Matoulek almost 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #8

Updated by The Foreman Bot almost 3 years ago

  • Pull request https://github.com/theforeman/foreman/pull/8616 added
Actions #9

Updated by Tomer Brisker almost 3 years ago

  • Target version set to 2.5.1
Actions #10

Updated by Tomer Brisker almost 3 years ago

  • Fixed in Releases 2.5.1 added
Actions

Also available in: Atom PDF