Repository navigation
fix(presentation): authenticate thumbnail URL in manage presentations - #25241
antobinary merged 1 commit into
Conversation
Presentation resource URLs are built with only a pageToken. Since bigbluebutton#25020 the server also requires a sessionToken in the query string and returns 401 before checking anything else. The slide path already appends it via Auth.authenticateURL, but the media-sharing presentation thumbnail used the raw URL straight from GraphQL, so its request was rejected with 401 and the thumbnail never loaded. Authenticate the thumbnail URL with the same helper (idempotent, does not duplicate an existing token). Adds a Playwright test that opens the manage presentations panel and asserts the thumbnail carries the session token and actually loads (naturalWidth > 0). Fixes bigbluebutton#25163 Co-authored-by: Tainan Felipe <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThis PR fixes presentation thumbnail loading in BBB 4.0 by wrapping thumbnail URLs with authentication. The component now imports the Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
ramonlsouza
left a comment
There was a problem hiding this comment.
tested on local setup, LGTM!
✅ Automated tests have passed! |
8768637
into
bigbluebutton:v4.0.x-develop



What does this PR do?
Presentation thumbnails in the Manage presentations panel fail to load on 4.0 — they render as broken images and the console logs
401 (Unauthorized)for the thumbnail requests.Since #25020, presentation resource URLs (svg/png/thumbnail) require a
sessionTokenin the query string. The client adds it viaAuth.authenticateURL(), which is why slides render fine — but the Manage-presentations thumbnail was the one spot still using the raw URL straight from GraphQL, so its request got rejected.The fix authenticates the thumbnail URL the same way the slide path already does:
One client-side line, no backend change.
authenticateURLis idempotent (won't duplicate an existing token) and the surrounding guard guarantees the URL is non-empty.Closes Issue(s)
Closes #25163
How to test
/bigbluebutton/presentation/.../thumbnail/..., and the thumbnail URL should carry&sessionToken=....Covered by a new Playwright test (
Presentation thumbnail loads) that opens the panel and asserts the thumbnail URL has the session token and the image actually loads (naturalWidth > 0).Validated on BBB 4.0.0-beta.3 (only this one-line client change between runs):
?pageToken=...?pageToken=...&sessionToken=...naturalWidth = 0)naturalWidth = 150)Before (401, broken):
After (200, loads):
More