java.lang.AssertionError from VaadinSession

Hello,

I turned asserts on for development purposes and I receive AssertionError from VaadinSession, apparently the lock for VaadinSession is not held - this could possibly lead to race conditions as well. Do you have any tips how to overcome this issue so I can test asserts in my application?

Thank you,

Screenshot from 2017-03-31 15-17-44

Hi,

Thank you for that check!

It seems that we use bad assumptions about state of VaadinSession and we certainly have to rework this mechanism of setting current SecurityContext based on VaadinSession attribute. I am going to investigate options for this fix next week.

See this issue https://youtrack.cuba-platform.com/issue/PL-8888, will try to fix it as soon as possible.

Hello Yuriy,

thank you. I will observe the progress. Looking forward to have this.

Thx,

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/PL-8888