Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4910

[cart] An error 500 occurs when user fill in quantity input by a letter or special character sign

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 4.4.0-beta1, 4.4.x-dev
    • None

    Description

      Steps to reproduce:

      1. Log in to storefront.
      2. Add a product to cart.
      3. Go to cart view.
      4. In quantity input provide a letter or special character sign
      5. Verify web browser console output.

      Actual result:

      See attached screenshots

      An error 500 occurs when user fill in quantity input by a letter or special character sign.

      500 (Internal Server Error) 
      {
          "ErrorMessage": {
              "_media-type": "application\/vnd.ibexa.api.ErrorMessage+json",
              "errorCode": 500,
              "errorMessage": "Internal Server Error",
              "errorDescription": "Requested amount must be grater or equal than 1 but 0 given.",
              "trace": "#0 
             }
      }

      Expected result:

      Validation works correctly, user cannot fill in QTY input by letter or special character signs.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              bogdan.mazur@ibexa.co Bogdan Mazur
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: