-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes in "vaadin.devmode.hostsAllowed" is not picked up even on server restart. #18400
Comments
Might be related to #18318 since the code referenced in the original description fetches the configuration from session - so if the session is persisted over the restart, the value of |
In Maybe it could be possible for us to change the 21 usages of the session-tied configuration to use the method from @mshabarov Any thoughts? |
Description of the bug
In v24.3.2, changes in
vaadin.devmode.hostsAllowed
fromapplication.properties
is not picked up even on server restart.This seems to be related to #18318 since the deploymentConfiguration is read from the session here - https://github.com/vaadin/flow/blob/main/flow-server/src/main/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandler.java#L95
Expected behavior
Changes in properties should be picked up every time on server restart
Minimal reproducible example
vaadin.devmode.hostsAllowed
, restart app and check if the changes work.Repeat step 2 multiple times to observe that changes dont work on server restart.
Versions
The text was updated successfully, but these errors were encountered: