Could you please tell, which CUBA version do you use?
I have a suggestion that the problem can be related to the spring-security version used in your project. So upgrading CUBA to the latest 7.2.9 can probably solve this.
could you specify what the problem is? We tried to simulate the error on our machine, the error descriped is occouring on our clients server.
I am not able to reproduce the error at this time.
Yes, we war on an older Version of CUBA on 7.2.5 to be specific, but before upgrading to the next version i would like to reproduce the error.
The problem comes from the bug which was introduced in Spring 5.2. It only occurs when starting the application without internet access. This bug was fixed in Spring Security 5.2.2+.
CUBA and REST API add-on 7.2.5 use Spring Security 5.2.1 which has this bug.
But in 7.2.9 version Spring Security was upgraded to 5.2.6 in which this bug is already fixed.
Seems like there was a little mistake from my side. Spring-security was upgraded in Cuba 7.2.9 but cuba-web does not use it as a dependency. And the latest REST add-on version still depends on Spring Security 5.2.1.
So the solution for you will be to explicitly add these dependencies to your project. It can be done in the build.gradle file.