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

Blocked patron can successfully place a request

    XMLWordPrintable

Details

    • EPAM-Veg Sprint 29
    • 2
    • Vega

    Description

      Mod-circulation doesn't validate if patron is blocked or not. As a result, POST circulation/request succeeds for the blocked patron. It is a problem for the requests coming from EDS. In FOLIO UI, there is a message displayed that the patron is blocked but after closing the message box it is still possible to place request.

      Steps to recreate through UI:
      1. Create a request for a blocked patron
      2. Close the message notifying that patron is blocked and click "New Request" button
      Expected:
      Request cannot be created
      Actual:
      Request is created

      Steps to recreate through API.
      {
      "id": "8454ff08-b110-4489-8630-192861ec1bbf",
      "requestType": "Page",
      "requestDate": "2019-09-27T22:25:37.000+0000",
      "requesterId": "48a3115d-d476-4582-b6a8-55c09eed7ec7",
      "itemId": "23fdb0bc-ab58-442a-b326-577a96204487",
      "status": "Open - Not yet filled",
      "item": {
      "title": "Temeraire",
      "barcode": "653285216743",
      "holdingsRecordId": "e6d7e91a-4dbc-4a70-9b38-e000d2fbdc79",
      "instanceId": "cf23adf0-61ba-4887-bf82-956c4aae2260",
      "location":

      { "name": "Main Library", "libraryName": "Datalogisk Institut", "code": "KU/CC/DI/M" }

      ,
      "contributorNames": [

      { "name": "Novik, Naomi" }

      ],
      "status": "Paged",
      "callNumber": "some-callnumber",
      "copyNumbers": [
      null
      ]
      },
      "requester":

      { "lastName": "Auer", "firstName": "Luther", "barcode": "680311830975018", "patronGroupId": "3684a786-6671-4268-8ed0-9db82ebca60b" }

      ,
      "fulfilmentPreference": "Hold Shelf",
      "requestExpirationDate": "2019-07-25T00:00:00.000+0000",
      "pickupServicePointId": "c4c90014-c8c9-4ade-8f24-b5e313319f4b",
      "metadata":

      { "createdDate": "2019-09-27T20:44:40.532+0000", "createdByUserId": "7473b141-845c-5739-9994-5ea344d21dd6", "updatedDate": "2019-09-27T20:44:40.532+0000", "updatedByUserId": "7473b141-845c-5739-9994-5ea344d21dd6" }

      ,
      "position": 1,
      "pickupServicePoint":

      { "name": "Circ Desk 2", "code": "cd2", "discoveryDisplayName": "Circulation Desk -- Back Entrance", "description": null, "shelvingLagTime": null, "pickupLocation": true }

      }

      TestRail: Results

        Attachments

          1. screenshot-1.png
            screenshot-1.png
            52 kB
          2. screenshot-2.png
            screenshot-2.png
            40 kB
          3. screenshot-3.png
            screenshot-3.png
            56 kB
          4. screenshot-4.png
            screenshot-4.png
            39 kB
          5. screenshot-5.png
            screenshot-5.png
            170 kB
          6. screenshot-6.png
            screenshot-6.png
            64 kB

          Issue Links

            Activity

              People

                Zmiivska Svitlana Zmiivska
                magdaz Magda Zacharska
                Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases