ECS | "Source" field is empty in FOLIO Inventory record updated by user from different affiliation

Description

NOTE: This issue was originally reported and fixed for MARC records. This current bug is to implement the same fix for FOLIO Inventory records.

Overview: "Source" field is empty in "Version history" pane of Shared Inventory record updated by user from different affiliation.
”Anonymous user” displays in the “Source” field of “Changed” modal.

Case 1 - when user has “View users” permission.

Preconditions:

  • Two users must exist:

    • User A with affiliations only in Central and Member 1 tenants

    • User B with affiliations only in Central and Member 2 tenants

  • User A has following capabilities:
    data - UI-Marc-Authorities Authority-Record - view (Inventory record view)
    data - UI-Users - view

  • User B has following capabilities:
    data - UI-Marc-Authorities Authority-Record - view (Inventory record view)
    data - UI-Marc-Authorities Authority-Record - edit (Inventory record edit)

  • Shared Inventory record must be updated by User B from Member 2 tenant

Steps to reproduce (as User A):

  1. Authorize as User A on ECS environment

  2. Switch active affiliation to Member 1 tenant.

  3. Find and open detail view of updated (by User B) FOLIO Inventory record

  4. Click on the 'Version history' icon

Expected result: First from the top "Card" contains following information:
"Source" field with hyperlink - User B

Actual result: First from the top, "Card" contains an empty "Source" field.
”Anonymous user” displays in the “Source” field of “Changed” modal.

See attached screenshots:

Looks as expected from Central tenant:

 

Case 2 - when user doesn’t have “View users” permission.

Preconditions:

  • Two users must exist:

    • User A with affiliations only in Central and Member 1 tenants

    • User B with affiliations only in Central and Member 2 tenants

  • User A has following capabilities:
    data - UI-Marc-Authorities Authority-Record - view (Inventory record view)

  • User B has following capabilities:
    data - UI-Marc-Authorities Authority-Record - view (Inventory record view)
    data - UI-Marc-Authorities Authority-Record - edit (Inventory record edit)
    Shared Inventory record must be updated by User B from Member 2 tenant

Steps to reproduce (as User A):

  1. Authorize as User A on ECS environment

  2. Switch active affiliation to Member 1 or Central tenant.

  3. Find and open detail view of updated (by User B) Instance record

  4. Click on the 'Version history' icon

Expected result: First from the top "Card" contains following information:
"Source" field with text - User B

Actual result: First from the top, "Card" contains an empty "Source" field.
”Anonymous user” displays in the “Source” field of “Changed” modal.

See attached screenshots:

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

9

Checklist

hide

Activity

Show:

Valery_Pilko last week

Hey ,
I’ve created a separate ticket for found issue https://folio-org.atlassian.net/browse/UIIN-3338. Please review

I’m closing current ticket.

Denys Bohdan April 15, 2025 at 1:18 PM

Hi and should we fix that issue in scope of this ticket?

Valery_Pilko April 15, 2025 at 12:02 PM

Verified on ECS Sunflower bugfest environment:

  1. User without permission to view users - issue found:
    ”Source” field contains hyperlink (not text) on FOLIO Instance “Version history” pane, when user doesn’t have permission to view users.

    This behavior differs from what was implemented for MARC records:

  2. User with permission to view users - looks as expected

Hey - could you please review?

JenkinsNotifications April 15, 2025 at 5:38 AM

Module folio_inventory was deployed to sunflower bugfest environment with version 13.0.3.

Valery_Pilko April 9, 2025 at 11:02 AM

Verified on https://folio-etesting-snapshot-consortium.ci.folio.org/:

Folio Instance records - fixed.
See attached screencasts:
- With permission to view users:

- Without permission to view users:

This issue now reproduces

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Fix versions

Release

RCA Group

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created April 3, 2025 at 2:10 PM
Updated last week
Resolved April 9, 2025 at 11:38 PM
TestRail: Cases
TestRail: Runs