Uploaded image for project: 'mod-inventory'
  1. mod-inventory
  2. MODINV-662

Fetching instance fails to respond with minimal permissions

    XMLWordPrintable

Details

    • Prokopovych - Sprint 136, Prokopovych - Sprint 137
    • 2
    • Prokopovych
    • Lotus (R1 2022) Bug Fix
    • Missing module permission

    Description

      Overview:

      Attempts to fetch a single instance fails (no response is received) when made with minimal permissions.

      Steps to Reproduce:

      1. Created a new user (using POST /users)
      2. Created new login credentials (using POST /authn/credentials)
      3. Created a permissions user, with only inventory.instances.item.get permission (using POST /perms/users)
      4. Login as new user (using POST /authn/login)
      5. Make request to any individual instance record (GET /inventory/instances/[id])

      The same can be done via the UI, however more permissions would be needed to navigate between apps and search, making it more likely the missing permission would be obscured.

      I can provide more details about the APIs involved if needed.

      Expected Results: Instance is fetched correctly

      Actual Results: No response is received at all
      URL: I used https://okapi-bugfest-lotus.int.aws.folio.org/inventory/instances/a3884a91-df9f-45c2-953c-24d0a51a9559 and {{https://folio-snapshot-2-okapi.dev.folio.org
      /inventory/instances/e54b1f4d-7d05-4b1a-9368-3c36b75d8ac6}} however this might not survive a rebuild.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                dennisbridges Dennis Bridges
                Aliaksandr Aliaksandr_Lukashevich5
                Aliaksandr_Lukashevich5 Aliaksandr_Lukashevich5
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases