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
fix: Do not rely on web components calling the license checker #14028
Conversation
flow-server/src/main/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandler.java
Outdated
Show resolved
Hide resolved
if (failedLicenseCheck) { | ||
// Has been checked and the check failed | ||
const { connectedCallback } = constructor.prototype; | ||
constructor.prototype.connectedCallback = function () { |
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.
The connectedCallback
should be also overridden in the case the license is not checked yet. Otherwise, the license fallback will never be shown if the license check fails while the component is still not in the DOM.
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.
Fixed so it is always overwritten
Use the same key for productMissingLicense and productCheckOk
f5882fe
to
81eda09
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This ticket/PR has been released with Vaadin 23.2.0. |
(cherry picked from commit 60a8728)
(cherry picked from commit 60a8728)
(cherry picked from commit 60a8728)
(cherry picked from commit 60a8728)
This ticket/PR has been released with Vaadin 14.9.0.beta1 and is also targeting the upcoming stable 14.9.0 version. |
No description provided.