Skip to content
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: remove Lazy annotation from Flow security beans (#18463) (CP: 24.3) #18514

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

vaadin-bot
Copy link
Collaborator

No description provided.

* fix: remove Lazy annotation from Flow security beans

For parameters with Lazy annotation, Spring generates a not-serializable proxy.
Since some security beans are used inside Flow listeners, they should be fully
serializable (or defined transient, if possible).
This change removes the unnecessary Lazy annotaions, moving the lazy evaluation
to VaadinWebSecurity.

Fixes #18458

* Apply suggestions from code review

Co-authored-by: Peter Czuczor <61667986+czp13@users.noreply.github.com>

* set proxyBeanMethods to false

* use try-with-resource for serialization/deserialization

---------

Co-authored-by: Peter Czuczor <61667986+czp13@users.noreply.github.com>
@vaadin-bot
Copy link
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR[Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) January 22, 2024 14:46
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

Test Results

1 051 files  ±0  1 051 suites  ±0   1h 14m 3s ⏱️ + 1m 6s
6 757 tests +1  6 712 ✅ +1  45 💤 ±0  0 ❌ ±0 
7 057 runs   - 7  7 001 ✅  - 7  56 💤 ±0  0 ❌ ±0 

Results for commit d7b3db1. ± Comparison against base commit 701eb16.

@vaadin-bot vaadin-bot merged commit aa7f314 into 24.3 Jan 22, 2024
25 of 26 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-18463-to-24.3-1705934530881 branch January 22, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants