Issue with update of marc authority by user without admin permissions

Description

Overview: user with special permissions has ability to update existing marc authority. But when he try to do this without some required permissions, ability to update marc authority become broken. Can be related with creation of required profiles without required permissions.

see testcase "C350667 Update a MARC authority record via data import. Record match with 010 $a" in branch https://github.com/folio-org/stripes-testing/tree/FAT-1623-TC-C350667

Initial step - login as diku_admin

Steps to Reproduce:

  1. Сheck that there is no marc authorities with id "n 42008104". You can try to use folio snapshot after fresh update or update marc file(change value to unique in tag 010). Expectation in attached initial state without test marc authority

  2. Start import of marc authority through default job profile "Default - Create SRS MARC Authority", use attached marc file. Import should be success. 1 marc authority should be added. See attached images with prefix "initial-import-"

  3. Go to Data Import settings

  4. Create new field mapping profile through POST request, see attached image field mapping profile

  5. Create new action profile through POST request, see attached image action-profile

  6. Create new match profile through POST request, see attached images with prefix "match-profile"

  7. Create new job profile through POST request, see attached image job-profile

  8. Go to created initial marc authority and update 130 tag, see attached images with prefix "updated-initial-authority"

  9. Go to data import and run it with job profile "Update MARC authority records - 010 $a" from step 7 to attached marc authority file(the same file as in step 2). See attached image second-import-with-update. Import should be finished without error

  10. Go to marc authority, apply filter by id from step 1. Marc authority was reverted to initial state, see attached image updated-marc-authority

  11. Remove created profiles

  12. Login as user with permissions 'Data import: all permissions', 'Edit MARC authority record', 'View MARC authority record', 'quickMARC: View, edit MARC authorities record', 'Data Import File Upload - all permissions'

  13. Repeat steps 1-9 by new user. 

Expected Results:

 update of created marc authority should be finished correctly

Actual Results:

folio returns error "Failed updating Authority. Cause: Not found, status: '404'". There is suggestion, that It's related with lost value of subfield i in tag 999. See attached image. When I change user to diku_admin and repeat steps 1-9 folio updates marc authority correctly.

 If issue related with absence of required permission I suggest to provide details about this to related responses

Environment

None

Potential Workaround

None

Attachments

20

Checklist

hide

TestRail: Results

Activity

Show:

Dmitry May 12, 2022 at 1:04 PM

issue was solved in process of solving of 

Pavlo Smahin May 4, 2022 at 8:27 AM

, actually I'm not the best person for this, I'm not good at UI permissions. Maybe  or  could help with your question.

Dmitry May 4, 2022 at 7:08 AM
Edited

 could you enumerate required permissions to work with data import of marc authorities? I will apply these settings into my test, recheck this and update the ticket description.

Dmitry May 4, 2022 at 7:07 AM
Edited

, diku_admin has this permission in fresh snapshot. May be you've found one more bug.

Pavlo Smahin May 2, 2022 at 9:59 AM

. , 'Data Import File Upload - all permissions' permission does not exist on UI, so the team can go through all steps to reproduce the bug.

Done

Details

Assignee

Reporter

Priority

Development Team

Spitfire

Release

Morning Glory (R2 2022)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created April 26, 2022 at 11:28 AM
Updated May 12, 2022 at 1:04 PM
Resolved May 12, 2022 at 1:04 PM
TestRail: Cases
TestRail: Runs