Repository navigation
fix(rap): hide every camera of a locked user in recordings - #25889
antobinary merged 2 commits into
Conversation
With "webcams only for moderator", create_webcam_edl moved only one camera per user between the active and inactive lists, since extract_filename_from_userId returns a single filename. A viewer's other cameras still showed in the recording while the lock was on, and the same happened when a user was demoted or promoted under the lock. Move all of the user's cameras instead, matching them by the same get_id_from_filename used by the start and stop handlers.
|
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 (2)
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 webcam EDL generator now moves every video whose parsed user ID matches the requested ID. Moderator-only filtering and role changes use this behavior. Role changes create an EDL entry only when at least one video moves. Webcam EDL area entries no longer include Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change fixes a recording bug where one of a viewer's two cameras could stay visible while webcams were locked. No merge-blocking risk is evident from the supplied context. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change strengthens recording privacy by hiding every matching camera when moderator-only restrictions apply. No introduced security regression was verified. Production event-ordering and filename guarantees, and compatibility with outside integrations, remain unverified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
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 |
Nothing reads the user_id set on the webcams of an EDL entry, which is why the role change and lock entries could tag them with the wrong user without anyone noticing. Remove it instead of fixing it.
f0e2feb to
92b91e0
Compare
🚨 Automated tests failed |
|
@antobinary This change is also suitable for being backported to 3.0 (a privacy fix - viewer webcams might be visible when they should be hidden) |
b494e1f
into
bigbluebutton:v4.0.x-develop
…eras-30 [3.0 port] fix(rap): hide every camera of a locked user in recordings- #25889
What does this PR do?
Fixes how
create_webcam_edlhandles the "webcams only for moderator" lock. There's one commit per change.extract_filename_from_userIdreturned a single filename (the last match). It's replaced bymove_user_videos, which moves every camera whoseget_id_from_filenamematches the user. That's the same function the Start/Stop handlers use to decide whether a camera is locked. The oldfilename.match(userId)substring match is gone with it.user_idis dropped from webcam EDL entries. Nothing reads it, which is why the role change and lock entries could tag webcams with the wrong user (or nil) unnoticed. It's removed from all five entry builders instead of being fixed.Closes Issue(s)
None
Motivation
With
show_moderator_viewpoint: false(the default), a viewer sharing two cameras while webcams are locked to moderators still had one of them in the recording.How to test
ruby -Ilib -Itest test/recordandplayback/generators/test_events.rbinrecord-and-playback/core. The new test covers the lock turning on and off, and a promotion and a demotion under it, with users sharing two cameras each.More
Same code on v3.0.x-release. Both commits cherry-pick there and the tests pass.