RuntimeException when creating screen policy

Hi,

I found a bug when trying to create a screen policy in Resource Roles I get the following Error:

RuntimeException: Duplicate key for values MyScreen.edit and MyScreen.browse. This happens when both screen have the same caption (but distinct id’s).

The error is thrown by getScreenOptionsMap function from ResourcePolicyEditorUtils class, because keymapper and valuemapper parameters of Collectors.toMap are reversed.

Hi.

Thank you for reporting the problem. It is a known issue.

It will be fixed in the next Jmix release.

Regards,
Nadezhda.