Back port missing module permission in fee-fine scheduled notice processing to 2021 R2

Description

Background:

We noticed that certain scheduled notices were not going out in our hosted environments like below:

 Noticed messages like the below in logs:

 

On verifying the modulePermissions for https://github.com/folio-org/mod-circulation/blob/v19.2.8/descriptors/ModuleDescriptor-template.json#L746 endpoint, it is missing 'circulation.rules.notice-policy.get' permission

Actual Results:
Scheduled notices that have a triggeringEvent of "overdue fine returned" are not going through due to the missing permission

Expected Results:

Scheduled notices that have a triggeringEvent of "overdue fine returned" to be sent without failures

Observations:
After adding the missing permission, all queued scheduled notices cleared themselves

CSP Request Details

https://folio-project.slack.com/archives/CHLD3AKU7/p1634813393005700

CSP Rejection Details

None

Potential Workaround

None

Attachments

4

Checklist

hide

TestRail: Results

Activity

Show:

julie.bickle November 18, 2021 at 5:07 PM

I confirm I was able to receive scheduled emails for the trigger "Overdue fined, returned" in Juniper Bugfest.

Oleksii Petrenko November 18, 2021 at 12:18 PM

Deployed to Juniper bugfest. Please proceed with verification

Sherzod Nurjonov November 4, 2021 at 12:51 PM

The current version of the Circulation Module is {{(mod-circulation-22.0.5) }}on Bugfest Juniper environment and the issue was related to missed permissions in ModuleDescriptor. I reproduced the same scenario on Bugfest Kiwi (which is used mod-circulation-22.1.1), but everything is working there (notification is sending as expected).

Solution:
We need to add below 2 permissions to "modperms.circulation.check-in-by-barcode.post" subpermission into ModuleDescriptor-template.json file in mod-circulation module.

"scheduled-notice-storage.scheduled-notices.collection.delete"

"scheduled-notice-storage.scheduled-notices.item.post"

__Thanks,

CC:

Oleksii Petrenko October 28, 2021 at 1:45 PM

Moved to Juniper HF#4

Marc Johnson October 28, 2021 at 1:35 PM

thank you

Done

Details

Assignee

Reporter

Tester Assignee

Labels

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

Release

R2 2021 Hot Fix #4

RCA Group

Missing module permission

CSP Approved

Yes

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 21, 2021 at 10:30 AM
Updated January 26, 2022 at 9:09 AM
Resolved November 4, 2021 at 12:59 PM
TestRail: Cases
TestRail: Runs