Skip to content

MAX_INT (2147483647) is not handled in product and item quantity upon updating item quantity - Scenario 2 #7

@dannytayjy

Description

@dannytayjy

Problem: MAX_INT (2147483647) is not handled in product and item quantity upon updating item quantity - Scenario 2

Updating the quantity of an existing item to MAX_INT (i.e., 2147483647) is allowed, resulting in integer overflow for the updated quantity of product. The updated quantity of the product is now a negative value (-2147483599) due to integer overflow.

Before Execution of Command in Command Text Box:

image.png

After Execution of Command in Command Text Box:

image.png

Actual Outcome:

  • Item and product quantity is updated

Expected Outcome:

  • The update should not happen as the updated quantity of the product is now a negative value due to integer overflow
  • Displays error message in the message box so that the user can recover from the error

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions