Skip to content

REST API Pagination Does not work as expected #26986

Closed
@lbajsarowicz

Description

@lbajsarowicz

Preconditions (*)

  1. Magento 2.3.4
  2. REST API Call

Steps to reproduce (*)

  1. Fixture with 3 orders
  2. Request with page_size = 1 and current_page = 99

Expected result (*)

  1. total_count returns 3
  2. items returns empty array OR OutOfRangeException

Actual result (*)

  1. total_count is 3
  2. items returns repeated last page of results

Kudos for

@ihor-sviziev , @Vinai , @nuzil for discussion at #appdesign channel about this issue.
image
image
image

Metadata

Metadata

Assignees

Labels

Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Format is validGate 1 Passed. Automatic verification of issue format passedReported on 2.3.4Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions