Uploaded image for project: 'ui-inventory'
  1. ui-inventory
  2. UIIN-1654

Missing permission - inventory.items.item.mark-in-process.post

    XMLWordPrintable

Details

    • 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:

      1. Go to any environment that has these versions deployed - mod-inventory-17.0.4 and ui-inventory-7.1.4
      2. Open the inventory app
      3. Find an available item
      4. Open the item record
      5. 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

            Activity

              People

                mpk35 Michal Kuklis
                sduvvuri Sobha Duvvuri
                Charlotte Whitt Charlotte Whitt
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases