Commit 9119fbb
fix: ensure session lock is held during node state checks in StreamRequestHandler (#22765)
StreamRequestHandler.callElementResourceHandler was performing node state
checks (isInert, isEnabled, isAttached, isVisible) without holding the
session lock, creating a race condition where node state could change
between validation and handler execution.
This change moves all node state checks inside a single session lock block
to ensure thread-safe access throughout the validation process. The nested
lock for UploadHandler has been removed as it's now redundant.
Fixes #22746
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent bc5ca60 commit 9119fbb
File tree
1 file changed
+16
-16
lines changed- flow-server/src/main/java/com/vaadin/flow/server/communication
1 file changed
+16
-16
lines changedLines changed: 16 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
149 | 151 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | 190 | | |
| 191 | + | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
0 commit comments