Hello,
I’ve prepared an example to demonstrate an error we came across recently.
Steps to reproduce:
- Start application.
- Set
cuba.useSpringApplicationEventsToSetupAttributeAccess
tofalse
. If you curious about Spring-based old style Rules - the same is the case with them as well. - Open Application->As screen
- Create a new A
- Enter any values
- Press Save button
- Modify name field
- Try to save entity again. Here you get the error Access if forbidden or something to that effect – since the entity doesn’t have a security token.
Regards,
Ilia.
PS Actually I wonder what’s the reason security tokens are loaded for entities in the main editor datasource and it’s nested ones, but aren’t loaded for other datasources?