CSM Contributor User unable to view cases with error "Sorry, either the data don't exist or you don't have the access"


Description

After installing the 'CSM Contributor User' plugin (com.snc.csm_contributor_user) and have assigned an internal user the 'sn_customerservice.self_contributor' role which should allow them to create cases for themselves through the CSM portal.

The user is able to login to the CSM portal and submit a case through the record producer, however once they click submit they receive the error message "Sorry, either the data don't exist or you don't have the access" and they are unable to view any submitted cases.

Steps to Reproduce

1) Verify the "com.snc.csm_contributor_user" plugin is active.

2) Create a new User and assigned the 'sn_customerservice.self_contributor' role to the user.

3) Impersonate the newly created user and from csm portal created a new case via record producer:
/csm?id=contributor_user_create_case&sys_id=3f00041853b51010b37cddeeff7b12c0

4) As soon as the record is submitted, the following error shows:
"Sorry, either the data don't exist or you don't have the access".

Workaround

Modify the condition in Query Rule "Case - Internal user is me and other entities are empty":
Tablename: sn_query_rule.
Record sys_id = "e37996b59a68ca03dea45928bf13af4b086b2389".

Ensure the [requesting_service_organization] field is removed from the filter condition. To do that one can simply add a field in filter condition, update the record and then remove the added field and update the record again.
Check the XML code of the record to see the [requesting_service_organization] field is not present in the filter.


Related Problem: PRB1497806