Topic: ReportingException Error for Users with Tenant IDs in Multitenancy Configuration
Issue Summary:
I’m encountering an issue with the JMIX Reporting and Multitenancy plugins when generating and accessing reports for users with assigned tenant IDs. While users without a specific tenant (Tenant ID set to NULL) can access and download reports successfully, users with an assigned Tenant ID receive an error, preventing them from accessing the reports.
Steps to Reproduce:
- Create Report: I created a report in JMIX using the Reporting plugin. For example, the report model lists clients.
- Multitenancy Setup: I configured the JMIX Multitenancy plugin and associated the report with roles that can use it.
- Assign Screen Access: I ensured the report is accessible on the appropriate screen, adding a button in the client list view to allow report generation and downloading.
- Roles and Permissions: Assigned the roles with access to this report and configured the screen where users with those roles can view and interact with it.
Problem:
- Users without Tenant: Users with Tenant ID set to NULL can access, view, and download the report without issues.
- Users with Assigned Tenant ID: Users assigned a specific Tenant ID receive the following error when attempting to download the report:
ReportingException: Cannot find report with code clients-report
Expected Outcome:
Users with an assigned Tenant ID should be able to access and download the report in the same way as users without a specific Tenant ID.
Request for Assistance:
Could you please provide guidance on configuring the Reporting and Multitenancy plugins to ensure compatibility for users with assigned Tenant IDs? It seems there might be a configuration or permission issue specific to tenant-based access within the reporting feature.
Thank you for your assistance!