Projekt

Allgemein

Profil

Aktionen

GX-Bug #69715

geschlossen

API V3 /options endpoint pagination behaves weird when navigating to a too high page

Von Tobias Schindler vor etwa 2 Jahren hinzugefügt. Vor etwa 2 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Moritz Bunjes
Kategorie:
REST-API
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Install new shop => `/api.php/v3/options?page=2&per-page=3` => Verify last two options | `/api.php/v3/options?page=3&per-page=3`=> expected empty data, but got all items back
Betroffene Versionen:
4.5.2.2
Release Notes Langtext:

Es wurde ein Fehler behoben der alle Optionen in der v3 Api angezeigt hat wenn man auf eine Seitenanzahl größer als die letzte Seite angegeben hat


Beschreibung

When using query params to configure pagination for the /options endpoint, the result data might be unexpected when using a page configuration which should lead to an empty result set.

Example:

  • total items: 6
  • per page: 3
  • page: 1 + 2

Result: On page 1, the first three options are displayed, on page two, the last three options are displayed.

When using this setup and navigating to page 3, I would expect to get an empty result set, but instead I get all 6 options back, even if the result set is limited via the per-page query param.


Aktionen

Auch abrufbar als: Atom PDF