Repository navigation
fix(bbb-web): Prevent redirect with invalid characters - #21654
Conversation
This fixes a few cases that could result in 500 errors when using templated logoutUrl (after bigbluebutton#20965)
WalkthroughThe changes in the pull request focus on the Additionally, the existing Moreover, the error handling within the Sequence Diagram(s)sequenceDiagram
participant User
participant ApiController
User->>ApiController: Request Logout
ApiController->>ApiController: Call subLogoutParams(logoutUrl, meetingID, userID, fullName)
ApiController-->>User: Redirect to Constructed Logout URL
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ApiController.groovy (1)
1977-1977: Improve logging statementThe current log statement doesn't provide context about what's being logged.
- log.info(meetingID, userID, fullName); + log.info("Processing logout URL substitution - meetingID: [{}], userID: [{}], fullName: [{}]", + meetingID, userID, fullName);
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ApiController.groovy(2 hunks)
🔇 Additional comments (3)
bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ApiController.groovy (3)
267-271: LGTM: Error redirect URL handling looks good
The code properly handles the errorRedirectUrl parameter with appropriate null/empty checks.
1973-1984: LGTM: Clean implementation of URL parameter substitution
The method safely handles parameter substitution with proper null checks and encoding.
1997-2000: LGTM: Proper handling of incomplete logout URL fields
The code appropriately handles cases where logout URL contains placeholders but not enough info is available to substitute them.
|
Automated tests Summary✅ All the CI tests have passed! |
|
Thanks. Sounds good to me! |



This fixes a few cases that could result in 500 errors when using templated logoutUrl (after #20965)
Also might lay the foundation to help the work being done here: #21204