Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return early when rendering unsupported notification type #47419

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

rudream
Copy link
Contributor

@rudream rudream commented Oct 9, 2024

This PR fixes an edge case where it was possible for an unsupported notification to be rendered despite its content being null, resulting in a javascript error when trying to access its properties. This bug could only occur in the scenario where a user runs enterprise Teleport, receives an enterprise-only notification (such as for access requests), clicks the notification/marks it as read, and then switches to open source Teleport with the same user on the same cluster.

@rudream rudream added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 labels Oct 9, 2024
@github-actions github-actions bot requested review from kiosion and ravicious October 9, 2024 21:27
Copy link
Contributor

@avatus avatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@rudream rudream enabled auto-merge October 9, 2024 21:29
@rudream rudream added this pull request to the merge queue Oct 9, 2024
Merged via the queue into master with commit 9c108fe Oct 9, 2024
41 of 42 checks passed
@rudream rudream deleted the yassine/notification-fix branch October 9, 2024 21:43
@public-teleport-github-review-bot

@rudream See the table below for backport results.

Branch Result
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v16 no-changelog Indicates that a PR does not require a changelog entry size/sm ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants