Uploaded image for project: 'edge-orders'
  1. edge-orders
  2. EDGORDERS-34

Type parameter needs to be case-insensitive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.4.0
    • Labels:
    • Template:
      Standard Bug Write-Up Format
    • Sprint:
      ACQ Sprint 110
    • Story Points:
      1
    • Development Team:
      Thunderjet
    • Release:
      R2 2021

      Description

      Overview
      Previously the type parameter being sent in the request API was case-insensitive.
      https://github.com/folio-org/edge-orders/blob/v2.1.0/src/main/java/org/folio/edge/orders/Constants.java#L66

      Currently if we send a request with type=gobi instead of type=GOBI the request fails with the below error:

      <?xml version='1.0' encoding='UTF-8'?>
      <Response>
       <Error>
       <Code>BAD_REQUEST</Code>
       <Message>Unknown Purchasing System Specified: gobi</Message>
       </Error>
      </Response>
      

      Expected Results:

      • type parameter is case insensitive

      Actual:

      • the parameter only accepts Capitals

      REF: This was observed while testing in one of the EBSCO environments. where GOBI was configured to use type=gobi

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Andrei_Makaranka Andrei Makaranka
                Reporter:
                KVupp Kruthi Vuppala
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases