Skip to content

API - No error when updating stock when auto increment is exceeded in inventory_source_item  #32540

Closed
magento/inventory
#3309
@bjornmeat

Description

Preconditions (*)

  1. Magento 2.4.1
  2. Magento Rest API

Steps to reproduce (*)

  1. Table inventory_source_item table with source_item_id larger than 4294967295
  2. Post source item update to rest/V1/inventory/source-items
  3. Response will be 200 ok

Expected result (*)

  1. Response from API should be error updating, since data is not stored

Actual result (*)

  1. Response from API is 200 ok
  2. Data is not saved, since max value of primary key source_item_id is type INT with max value of 4294967295

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Assignees

Labels

Component: InventoryComponent: WebapiUse with concrete module component label E.g. "Component: Webapi" + "Catalog"Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

  • Status

    Dev In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions