[MGNLUI-1815] LocalMessageDispatcher should set Vaadin session in thread local before dispatching message event Created: 04/Jul/13  Updated: 08/Jul/13  Resolved: 05/Jul/13

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.0
Fix Version/s: 5.0.1

Type: Bug Priority: Neutral
Reporter: Tobias Mattsson Assignee: Tobias Mattsson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

When messages are sent from a thread that isn't processing a server request, for instance a thread from workflow, LocalMessageDispatcher needs to set the Vaadin session in the thread local otherwise MagnoliaShell runs into an NPE when it attempts to show a notification.


Generated at Mon Feb 12 08:50:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.