Deadlock during login

User goes to the login page, enters loging and password and presses login.
Nothing happens. The Login request in dev tools is pending and never finishes.

The problem is caused by a deadlock:


The GetBusinesspartnerDataSet is called from here:

origam version: 2024.4.2.3392

One of prerequisites of the deadlog is that the Authorize method is called in the AbstractSqlCommandGenerator.Filters method. That happens on two places if:

There is a DataStructureFilterSetFilter with a role defined on one of the datastructures

There is an EntitySecurityFilterReference defined on one of the entities

The EntitySecurityFilterReference will be removed in the production model and we will see if it works as a temporary solution.

It is still not clear why this started happening after switching from 2021.2 to 2024.4.

Removing the EntitySecurityFilterReference did help. The problems with the login do not occur any more.

The core problem will be solved later by refactoring the entity BusinessPartner away from the Root package. It will be a separate task.