Hi,
In a standard list view, I have a CollectionLoader, a genericFilter bound to that loader, a row-level role with @JpqlRowLevelPolicy on the same root entity loaded by the view.
The expected behavior is that the final result should always be JpqlRowLevelPolicy AND genericFilter condition
However, in practice, when the user applies a condition using genericFilter, the @JpqlRowLevelPolicy does not seem to be respected anymore, and entities become visible that should remain restricted by the row-level role.
Important details, the policy is defined on the same root entity as the loader and the view uses a standard Flow UI collection loader. There is no custom loadDelegate but if I add a @PredicateRowLevelPolicy, the result becomes correct again, but performance is much worse.
So it looks like:
@JpqlRowLevelPolicy alone → not correctly applied when genericFilter is used
@PredicateRowLevelPolicy → works as a workaround, but is too slow for real use
This makes me think the issue is specifically in the interaction between genericFilter and @JpqlRowLevelPolicy.
Has this been reported already?
Is it a known bug or limitation in Jmix 2.7.4?
Thanks.