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

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



    • Prokopovych - Sprint 127, Prokopovych - Sprint 128, Prokopovych - Sprint 129
    • 3
    • Prokopovych
    • R3 2021 Bug Fix


      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.


      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


          1. Screen Shot 2021-11-01 at 3.56.37 PM.png
            183 kB
            Sobha Duvvuri
          2. Skärmavbild 2021-10-01 kl. 12.48.09 em.png
            574 kB
            Charlotte Whitt
          3. Skärmavbild 2021-10-01 kl. 12.49.02 em.png
            572 kB
            Charlotte Whitt
          4. Skärmavbild 2021-10-01 kl. 12.50.24 em.png
            443 kB
            Charlotte Whitt
          5. Skärmavbild 2021-10-01 kl. 12.51.41 em.png
            303 kB
            Charlotte Whitt
          6. Skärmavbild 2021-12-13 kl. 4.37.31 em.png
            585 kB
            Charlotte Whitt
          7. Skärmavbild 2021-12-13 kl. 4.38.16 em.png
            401 kB
            Charlotte Whitt
          8. Skärmavbild 2021-12-13 kl. 4.38.35 em.png
            344 kB
            Charlotte Whitt

          Issue Links



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



                  TestRail: Runs

                    TestRail: Cases