-
Notifications
You must be signed in to change notification settings - Fork 161
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
Cherry Pick: Fix the dependency of DevModeInitializer on ServletRegistration (#7709) #7744
Conversation
* Fix the dependency of DevModeInitializer on ServletRegistration * Use VaadinServlet registration if present in DevModeInitializer (cherry picked from commit d693b47)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 6 of 6 files at r1.
Reviewable status: complete! all discussions resolved, 1 of 1 LGTMs obtained
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 3 files at r2.
Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained, and 1 stale (waiting on @denis-anisimov and @mehdi-vaadin)
flow-server/src/test/java/com/vaadin/flow/server/startup/DevModeInitializerTest.java, line 217 at r2 (raw file):
System.setProperty( Constants.VAADIN_PREFIX + FrontendUtils.PROJECT_BASEDIR, initParams.get(FrontendUtils.PROJECT_BASEDIR));
Is there any way to avoid using system property ?
As I mentioned : it's global which mean it's not tread safe.
Other test which sets this property may break this test. Or this test may break other test which reads this property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained, and 1 stale (waiting on @denis-anisimov)
flow-server/src/test/java/com/vaadin/flow/server/startup/DevModeInitializerTest.java, line 217 at r2 (raw file):
Previously, denis-anisimov (Denis) wrote…
System.setProperty( Constants.VAADIN_PREFIX + FrontendUtils.PROJECT_BASEDIR, initParams.get(FrontendUtils.PROJECT_BASEDIR));
Is there any way to avoid using system property ?
As I mentioned : it's global which mean it's not tread safe.
Other test which sets this property may break this test. Or this test may break other test which reads this property.
I used ServletContext parameter as you suggested on the other PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3.
Reviewable status: complete! all discussions resolved, 1 of 1 LGTMs obtained
Fix the dependency of DevModeInitializer on ServletRegistration
Use VaadinServlet registration if present in DevModeInitializer
(cherry picked from commit d693b47)
This change is