Load Bank Statement is not working in multi-tenant environments

Description

Found by

When running the Load Bank Statement process in an implementation with one client + GardenWorld, the process threw the following message:

Cross tenant PO reading request detected from session 1234354 for table C_BankAccount Record_ID=100

After debugging, I noticed that MBankStatementLoader.loadlines() [line 181] is missing to add AD_Client_ID to the where clause in the query, so the query.list() returns all active bank accounts including those of different clients, which leads to the cross tenant exception.

Environment

None

Attachments

1
  • 09 Dec 2020, 01:56 PM

Activity

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created December 9, 2020 at 1:56 PM
Updated February 1, 2021 at 2:14 PM
Resolved December 9, 2020 at 7:42 PM