[Bad Request] Missing parameter X-Okapi-Permissions in HEADER for /circulation/renew-by-barcode (eureka snapshot)

Description

An error occurs when a user with limited capabilities performs a renew by barcode

NOTE: test user has ONLY the following capabilities:
"name": "ui-users_loans-renew.create" - "resource": "UI-Users Loans-Renew",
"name": "ui-users_loans.view" - "resource": "UI-Users Loans"


for admin user renew works us expected


POST /circulation/renew-by-barcode
500 error
HTTP request to "http://localhost:8082/settings/entries" failed, status code: 400, response: "[Bad Request] Missing parameter X-Okapi-Permissions in HEADER"

To reproduce, please follow the TC https://foliotest.testrail.io/index.php?/cases/view/568

Reproducible on the envs:
https://folio-etesting-snapshot-diku.ci.folio.org
https://folio-etesting-cypress-diku.ci.folio.org


Preconditions:
User A with permissions: view loans, renew loans
User B with permissions: view loans, renew loans, renew loans through override

Loan L the following characteristics:

  1. Loan policy that says item is loanable, but not renewable

  2. Item status is checked out, and has no open requests

Steps:

  1. Log in as User A, and navigate to loan L. Renew loan L. - the test fails on this step!

  2. Log in as User B, and navigate to loan L. Renew loan L.

  3. Click override.

  4. Enter required information, and check at least one loan.

  5. Click override.

  6. Navigate to loan details.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

1

Checklist

hide

Activity

Show:

Oleksandr Hrusha 13 hours ago

Ostap Voitsekhovskyi February 27, 2025 at 6:17 PM

Hi yes, NON ECS environment, single tenant

Anne Ekblad February 27, 2025 at 2:21 PM

Ping on question,

Anne Ekblad February 24, 2025 at 10:33 PM

Hi, . Just to confirm, the environment being tested is Single tenant Eureka, correct?

Details

Assignee

Reporter

Priority

Story Points

Development Team

Vega

Release

Sunflower (R1 2025) Bug Fix

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created February 24, 2025 at 9:24 AM
Updated 13 hours ago
TestRail: Cases
TestRail: Runs