Uploaded image for project: 'mod-circulation'
  1. mod-circulation
  2. CIRC-1170

Calling circulation/rules/request-policy with invalid loan_type_id or location_id returns 500 error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • 22.1.0
    • None
    • Prokopovych - Sprint 118, Prokopovych - Sprint 119
    • Prokopovych

    Description

      Overview:
      This issue is observed in an Iris HF1 environment (mod-circulation-20.1.6) and can be reproduced on bugfest (mod-circulation-20.1.7)
      Response from circulation/rules/request-policy with invalid ids returns a 500 error instead of 422

      Steps to Reproduce:
      Issue GET request with either loan_type_id or location_id that does not exist in environment
      `GET https://okapi-bugfest-iris.folio.ebsco.com/circulation/rules/request-policy?item_type_id=1a54b431-2e4f-452d-9cae-9cee66c9a892&loan_type_id=2b94c631-fca9-4892-a730-03ee529ffe27&patron_type_id=3684a786-6671-4268-8ed0-9db82ebca60b&location_id=509e4237-bae6-4cfe-aab9-ce3bbe8b8440`

      https://s3.amazonaws.com/foliodocs/api/mod-circulation/p/circulation-rules.html#circulation_rules_request_policy_get

      Expected Results:
      Per api would have. expected to receive
      Response 422
      Invalid id error.
      Actual Results:
      Instead receive 500 response
      Interested parties:

      Note
      I assigned to Prokopovych based on
      https://wiki.folio.org/display/REL/Team+vs+module+responsibility+matrix

      TestRail: Results

        Attachments

          Activity

            People

              marcjohnson Marc Johnson
              cgodfrey Carole Godfrey
              Carole Godfrey Carole Godfrey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases