Description

Overview:
Some permissions are not defined in module descriptor. For example erm.jobs.collection.get, and erm.refdata.collection.get. Those perms are used as part of subpermissions but not defined in module descriptor. Also searching those perms using permissions API won't return results.

Steps to Reproduce:

  1. Try search /perms/permissions?query=(permissionName=="erm.jobs.collection.get")

  2. See module descriptor https://github.com/folio-org/mod-agreements/blob/v2.3.0/service/src/main/okapi/ModuleDescriptor-template.json#L460

Expected Results:
Those perms should be defined in module descriptor

Actual Results:
They are not.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Confluence content

Checklist

hide

TestRail: Results

Activity

Show:

Hongwei Ji October 19, 2020 at 12:51 PM

, looks good. Thanks.

Jag Goraya October 19, 2020 at 10:52 AM

changes for this have been made ... can you confirm it does as expected now please? It can be tested on folio-snapshot. Thx

Owen Stephens October 7, 2020 at 4:14 PM

Thanks

Hongwei Ji October 7, 2020 at 3:45 PM

We saw the permission errors in mod-authtoken logs. The reason it breaks is that when a perm set in module descriptor uses an "undefined" perm, for example https://github.com/folio-org/mod-agreements/blob/v2.3.0/service/src/main/okapi/ModuleDescriptor-template.json#L458-L461. Any API that is protected by that "undefined" perm, for example https://github.com/folio-org/mod-agreements/blob/v2.3.0/service/src/main/okapi/ModuleDescriptor-template.json#L167-L170 will not be accessible even if you give user the perm set. Why? mod-authtoken calls mod-permissions to expand perms for that perm set, and mod-permssions will not return that "undefined" perm because it is a dummy permission. Hope this helps.

Owen Stephens October 7, 2020 at 3:02 PM

can you expand on why this is important to you? We only currently list the permissions which we need to for the module to work as intended. As far as we know (potentially with the exception of https://folio-org.atlassian.net/browse/ERM-1079#icft=ERM-1079 mentioned by above) there is no problem with how permissions work for mod-agreements.

Can you expand on your use case and what problem you are trying to solve?

Something went wrong on our end

If this keeps happening, share this information with your admin, who should contact support.

Hash LVERXE Trace 0ac8d3b900e44cb98d13ca8f5651eaff

Details

Assignee

Owen Stephens

Reporter

Hongwei Ji

Priority

TBD

Sprint

None

Development Team

Bienenvolk

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
TestRail: Cases
TestRail: Runs

Flag notifications