Issues

Select view

Select search mode

 
50 of 107

The 'Cannot create new tag: you may not have the required permissions.' message is displayed after creating new tag

Description

Overview: The 'Cannot create new tag: you may not have the required permissions.' message is displayed and 500 error is received but new tag is displayed on tags pane.

Preconditions:

  1. User is logged in with all permissions.

  2. Instance is created.

  3. User is on "Inventory" app with opened details of Instance.

Steps to Reproduce:

  1. Click on the Tags icon in the upper right hand side next to Action.

  2. Type a new tag and hit Enter key.

  3. Pay attention to the error message.

Expected Results: The tag is created and added to instance.

Actual Results: The 'Cannot create new tag: you may not have the required permissions.' message is displayed after creating new tag.

Additional info: reproducible for all apps with tags assign possibility, e.g. Inventory, Requests, Finance, etc.

Actually new tag is not created as it is not present in Tags filter even after page refresh, but still display as assigned:

Admin role has ui-tags create capabilities:

Message from console:

POST <https://ecs-folio-etesting-snapshot-kong.ci.folio.org/tags> 500 (Internal Server Error)

(anonymous) @ FFetch.js:283
Promise.then
(anonymous) @ FFetch.js:281
(anonymous) @ bundle.stripes83652d51e6c8e1b35ba7.js:4420
Gc @ bundle.stripes83652d51e6c8e1b35ba7.js:4420
(anonymous) @ FFetch.js:233
(anonymous) @ RESTResource.js:593
(anonymous) @ index.js:16
POST @ RESTResource.js:316
saveTags @ Tags.js:162
(anonymous) @ Tags.js:100
(anonymous) @ TagsForm.js:92
stateReducer @ MultiSelection.js:264
(anonymous) @ downshift.esm.js:1694
op @ react-dom.production.min.js:163
p.useReducer @ react.production.min.js:26
hn @ downshift.esm.js:1699
Rc @ downshift.esm.js:2855
Xl @ downshift.esm.js:3026
vi @ MultiSelection.js:227
ia @ react-dom.production.min.js:160
cA @ react-dom.production.min.js:196
gc @ react-dom.production.min.js:291
Z @ react-dom.production.min.js:279
_e @ react-dom.production.min.js:279
ht @ react-dom.production.min.js:279
hg @ react-dom.production.min.js:272
Tu @ react-dom.production.min.js:127
(anonymous) @ react-dom.production.min.js:266
bundle.stripes83652d51e6c8e1b35ba7.js:4420

Environment: https://folio-etesting-cypress-diku.ci.folio.org/ and https://folio-etesting-snapshot-diku.ci.folio.org/ and ECS snapshot

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

4

Checklist

hide

Details

Assignee

Reporter

Priority

Development Team

Citation

Release

Sunflower (R1 2025) Bug Fix

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created last week
Updated 20 hours ago

Activity

Show:

Punnoose Kutty Jacob Pullolickal 3 days ago
Edited

From chrome dev tools:
Request:
POST https://folio-etesting-sprint-kong.ci.folio.org/tags
{"label":"ping","description":"ping","id": ”801cf927-89c9-4821-8481-0324ede1554f"}

Response:
{
"errors": [
{
"message": "Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.folio.tags.dao.model.Tag#801cf927-89c9-4821-8481-0324ede1554f]",
"type": "-4"
}
]
}

Exception log:

TestRail: Cases
TestRail: Runs
Loading...