Skip to content

When category URL page param is larger than the pagination, the page will break with elastic search 2 #23843

Closed
@ron-jomashop

Description

@ron-jomashop

Preconditions (*)

  1. Magento 2.3.2
  2. Elasticsearch 2

Steps to reproduce (*)

  1. Create a category with products
  2. Enable elasticsearch 2
  3. Reindex all
  4. Go to the category and add this params: "?p=999999999999999&product*list_order=price". Ex: https://www.example.com/category?p=9999999999999999999999999999&product_list*order=price

Expected result (*)

  1. Go to the last page of the category

Actual result (*)

  1. {{1 exception(s):
    Exception #0 (Elasticsearch\Common\Exceptions\ServerErrorResponseException): {"error":{"rootcause":<{"type":"json_parse_exception","reason":"Numeric value (2.3058430092137e20) out of range of int (-2147483648 - 2147483647)\n at [Source: [B@33145eaa; line: 1, column: 28]"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"magento2_product_1_v173","node":"viwpe1vCTrGQomOe0uHakA","reason":{"type":"json_parseexception","reason":"Numeric value (2.3058430092137e20) out of range of int (-2147483648 - 2147483647)\n at [Source: [B@33145eaa; line: 1, column: 28]"}}>},"status":500}}}

Metadata

Metadata

Assignees

Labels

Component: ElasticsearchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S1Affects critical data or functionality and forces users to employ a workaround.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions