Repository navigation
[3.0 backport] fix: Upload error toast for a rejected presentation can't be dismissed and keeps reappearing - #25916
Conversation
The learning dashboard actor could crash when stop/leave/end events arrived without the corresponding in-memory activity item. For example, a webcam stop event could call `.last` on an empty webcam vector, throwing NoSuchElementException and restarting the actor. Since the actor keeps meeting dashboard data in memory, that restart caused active meetings to stop receiving dashboard updates. Guard learning dashboard message handling and report sending with NonFatal logging so one bad event or report failure does not restart the actor. Replace unsafe `.last`, `.init`, and `dropRight(1)` updates with `lastOption`-based handling and small helper methods for user session state transitions. Also refactor the touched logic for readability: - add helpers for open/flagged sessions and closing/reopening sessions - use explicit matches for presentation, away, webcam, and screenshare state - split user rejoin handling into named intermediate values - use `meetings.values.foreach(sendReportSafely)` for periodic reports Normal event behavior is preserved; the intentional behavior change is that missing or already-closed activity state now no-ops safely and logs failures instead of crashing the actor. (cherry picked from commit c6472f9)
(cherry picked from commit 0121f9d)
(cherry picked from commit 73ecbc1)
(cherry picked from commit 8905100)
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (3)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. WalkthroughThe presentation handlers no longer require a presentation to appear in the meeting’s pod state before processing removal or upload-completion notification. The learning dashboard actor now handles empty slide and session histories, updates user sessions through shared helpers, checks active items before stop updates, and catches non-fatal exceptions during message handling and report delivery. Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: 🔵 Low · up to The change makes the dashboard more resilient and fixes the rejected-upload toast. Behavior of the session handling changes is only lightly covered by automated tests, so the owner should be aware of that gap and watch dashboard behavior after merge. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to A removal request can now delete a presentation’s stored metadata while leaving its live state in another presentation container. This creates a consistency risk within a meeting. The inspected database operations remain meeting-scoped, and the other changes improve failure containment. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
⏳ Automated tests are running... |
9abd62e
into
bigbluebutton:v3.0.x-develop
Backport of #25837 to
v3.0.x-develop(fixes #25817 on 3.0), plus one prerequisite from #25272.Commits
All four are clean cherry-picks; the resulting files are identical to 4.0.
Why the extra commit
With the guard removed, akka-apps emits
RemovePresentationEvtMsgfor a presentation that never converted. On 3.0LearningDashboardActor.handleRemovePresentationEvtMsgthen callspresentationSlides.laston an empty list and throws; the actor restarts with empty state and learning-dashboard data stops updating for every running meeting. 4.0 already has c6472f9, which guards this.Testing (3.0)
Live A/B in a 3.0 container with akka-apps built from
v3.0.x-develop(baseline) and from this branch. Rejected upload produced withmaxNumPages=15and a 16-page PDF. One run per cell.The last scenario FAILs (
NoSuchElementException: empty.tail) with the three #25837 commits alone, which is why c6472f9 is included.PresentationPodsAppSpecpasses 6 of 6 when run in isolation; the 3.0 akka-apps test tree does not compile as a whole (unrelated files).Not tested: other rejection types (mime type, size, conversion failure) and recorded meetings.