Details
-
Bug
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
Prokopovych - Sprint 127, Prokopovych - Sprint 128, Prokopovych - Sprint 129
-
3
-
Prokopovych
-
R3 2021 Bug Fix
Description
Charlotte: Can not reproduce in https://folio-juniper.dev.folio.org/
* @folio/inventory 7.1.4
* Inventory Module (mod-inventory-17.0.5)
Steps to reproduce:
- Go to any environment that has these versions deployed - mod-inventory-17.0.4 and ui-inventory-7.1.4
- Open the inventory app
- Find an available item
- Open the item record
- Click actions > Mark item in-process
Actual Results:
Error pops up complaining of a missing permission - ERROR: in module @folio/inventory, operation POST on resource ‘markAsInProcess’ failed, saying: Access requires permission: inventory.items.item.mark-in-process.post
Expected Results:
The item is marked in process successfully without error message.
Notes:
I looked at the versions of code and https://github.com/folio-org/mod-inventory/blob/v17.0.4/descriptors/ModuleDescriptor-template.json#L78 is the permission that's needed from the UI. In backend https://github.com/folio-org/mod-inventory/blob/v17.0.4/descriptors/ModuleDescriptor-template.json#L610 is the permission name and it is part of https://github.com/folio-org/mod-inventory/blob/v17.0.4/descriptors/ModuleDescriptor-template.json#L741 inventory.all but in the UI version https://github.com/folio-org/ui-inventory/blob/v7.1.4/package.json we do not see that permission "inventory.items.item.mark-in-process.post" or "inventory.all" being referenced which is why this is not a visible permission in the UI.
TestRail: Results
Attachments
Issue Links
- relates to
-
FOLIO-3198 UI apps should avoid using ".all" permissions
-
- Closed
-
- mentioned in
-
Page Loading...