cuba-platform / cuba

CUBA Platform is a high level framework for enterprise applications development
https://www.cuba-platform.com
Apache License 2.0
1.34k stars 219 forks source link

Second condition with a particular session attribute in a Filter configuration does not work #3281

Open knstvk opened 2 years ago

knstvk commented 2 years ago

Environment

Description of the bug or enhancement

Only one condition with a particular session attribute in a Filter configuration works. See the attached project for an example. filtertest.zip

The cause is in the FilterDelegateImpl.LoaderAdapter#refreshIfNotSuspended method: queryFilter.getCompiledParameters() returns a single entry (first) for both occurrences of of the parameter, and only this entry is updated with parameterInfo.setType(ParameterInfo.Type.NONE) instead of both.