Uploaded image for project: 'ui-orders'
  1. ui-orders
  2. UIOR-475

Orders: ISBN validation fails in POST /orders/order-lines when ISBN contains whitespace

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      ACQ Sprint 82
    • Development Team:
      Thunderjet

      Description

      Steps to reproduce
      1. Login to Chalmers' FOLIO (version 3.2)
      2. Go to Orders - New
      3. Choose template HBbokus and Save
      4. Add PO Line
      5. Fetch ISBN from Inventory with plus sign (this example 9781107166820)
      I make no other changes except for adding a Vendor Ref Number.
      Save
      Expected Result:
      To get a red message warning me about the faulty ISBN

      Actual Result:
      Get a red error message "Purchase order line not created"
      Looking at the response, you do not get a nice validation error from the server, instead the server responds with a HTTP 502 bad gateway

      {
        "errors": [
          {
            "message": "<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>502 Bad Gateway</h1></center>\r\n</body>\r\n</html>\r\n",
            "code": "genericError",
            "parameters": []
          }
        ],
        "total_records": 1
      }
      
      Removing the space in the string, makes the Server-side validation work again
      

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dennisbridges Dennis Bridges
                Reporter:
                ttolstoy Theodor Tolstoy
                Tester Assignee:
                Dennis Bridges Dennis Bridges
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases