-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page #164329
[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page #164329
Conversation
Pinging @elastic/security-defend-workflows (Team:Defend Workflows) |
@elasticmachine merge upstream |
…policy_details-164295
@elasticmachine merge upstream |
…policy_details-164295
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…olicy details page (elastic#164329) Fixes: elastic#164295 Fixes: elastic#164190 ## Summary There was a Kibana crash when using back link buttons to go back to the policy details page from Trusted Apps / Event Filters / Host Isolation exceptions / Blocklists page. Route state can be null depending on the previous action so it has to be conditional. The error occurs when it tries to access the `backLink` prop on `routeState` when it's not defined. Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit fb79e3e)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…olicy details page (elastic#164329) Fixes: elastic#164295 Fixes: elastic#164190 ## Summary There was a Kibana crash when using back link buttons to go back to the policy details page from Trusted Apps / Event Filters / Host Isolation exceptions / Blocklists page. Route state can be null depending on the previous action so it has to be conditional. The error occurs when it tries to access the `backLink` prop on `routeState` when it's not defined. Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit fb79e3e)
…k to policy details page (#164329) (#164556) # Backport This will backport the following commits from `main` to `8.9`: - [[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (#164329)](#164329) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"David Sánchez","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-23T10:44:11Z","message":"[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (#164329)\n\nFixes: https://github.com/elastic/kibana/issues/164295\r\nFixes: https://github.com/elastic/kibana/issues/164190\r\n\r\n## Summary\r\nThere was a Kibana crash when using back link buttons to go back to the\r\npolicy details page from Trusted Apps / Event Filters / Host Isolation\r\nexceptions / Blocklists page. Route state can be null depending on the\r\nprevious action so it has to be conditional.\r\n\r\nThe error occurs when it tries to access the `backLink` prop on\r\n`routeState` when it's not defined.\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"fb79e3e86430418c8a10d1cb9041c5e4f901a436","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend Workflows","v8.10.0","v8.11.0","v8.9.2"],"number":164329,"url":"https://github.com/elastic/kibana/pull/164329","mergeCommit":{"message":"[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (#164329)\n\nFixes: https://github.com/elastic/kibana/issues/164295\r\nFixes: https://github.com/elastic/kibana/issues/164190\r\n\r\n## Summary\r\nThere was a Kibana crash when using back link buttons to go back to the\r\npolicy details page from Trusted Apps / Event Filters / Host Isolation\r\nexceptions / Blocklists page. Route state can be null depending on the\r\nprevious action so it has to be conditional.\r\n\r\nThe error occurs when it tries to access the `backLink` prop on\r\n`routeState` when it's not defined.\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"fb79e3e86430418c8a10d1cb9041c5e4f901a436"}},"sourceBranch":"main","suggestedTargetBranches":["8.10","8.9"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164329","number":164329,"mergeCommit":{"message":"[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (#164329)\n\nFixes: https://github.com/elastic/kibana/issues/164295\r\nFixes: https://github.com/elastic/kibana/issues/164190\r\n\r\n## Summary\r\nThere was a Kibana crash when using back link buttons to go back to the\r\npolicy details page from Trusted Apps / Event Filters / Host Isolation\r\nexceptions / Blocklists page. Route state can be null depending on the\r\nprevious action so it has to be conditional.\r\n\r\nThe error occurs when it tries to access the `backLink` prop on\r\n`routeState` when it's not defined.\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"fb79e3e86430418c8a10d1cb9041c5e4f901a436"}},{"branch":"8.9","label":"v8.9.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: David Sánchez <[email protected]>
…ck to policy details page (#164329) (#164555) # Backport This will backport the following commits from `main` to `8.10`: - [[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (#164329)](#164329) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"David Sánchez","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-23T10:44:11Z","message":"[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (#164329)\n\nFixes: https://github.com/elastic/kibana/issues/164295\r\nFixes: https://github.com/elastic/kibana/issues/164190\r\n\r\n## Summary\r\nThere was a Kibana crash when using back link buttons to go back to the\r\npolicy details page from Trusted Apps / Event Filters / Host Isolation\r\nexceptions / Blocklists page. Route state can be null depending on the\r\nprevious action so it has to be conditional.\r\n\r\nThe error occurs when it tries to access the `backLink` prop on\r\n`routeState` when it's not defined.\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"fb79e3e86430418c8a10d1cb9041c5e4f901a436","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend Workflows","v8.10.0","v8.11.0","v8.9.2"],"number":164329,"url":"https://github.com/elastic/kibana/pull/164329","mergeCommit":{"message":"[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (#164329)\n\nFixes: https://github.com/elastic/kibana/issues/164295\r\nFixes: https://github.com/elastic/kibana/issues/164190\r\n\r\n## Summary\r\nThere was a Kibana crash when using back link buttons to go back to the\r\npolicy details page from Trusted Apps / Event Filters / Host Isolation\r\nexceptions / Blocklists page. Route state can be null depending on the\r\nprevious action so it has to be conditional.\r\n\r\nThe error occurs when it tries to access the `backLink` prop on\r\n`routeState` when it's not defined.\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"fb79e3e86430418c8a10d1cb9041c5e4f901a436"}},"sourceBranch":"main","suggestedTargetBranches":["8.10","8.9"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164329","number":164329,"mergeCommit":{"message":"[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (#164329)\n\nFixes: https://github.com/elastic/kibana/issues/164295\r\nFixes: https://github.com/elastic/kibana/issues/164190\r\n\r\n## Summary\r\nThere was a Kibana crash when using back link buttons to go back to the\r\npolicy details page from Trusted Apps / Event Filters / Host Isolation\r\nexceptions / Blocklists page. Route state can be null depending on the\r\nprevious action so it has to be conditional.\r\n\r\nThe error occurs when it tries to access the `backLink` prop on\r\n`routeState` when it's not defined.\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"fb79e3e86430418c8a10d1cb9041c5e4f901a436"}},{"branch":"8.9","label":"v8.9.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: David Sánchez <[email protected]>
* main: (150 commits) Fixes unnecessary autocompletes on HTTP methods (elastic#163233) [Defend Workflows] Convert filterQuery to kql (elastic#161806) [Fleet] copy `inactivity_timeout` when duplicating agent policy (elastic#164544) Fix 7.17 forward compatibility with 8.2+ (elastic#164274) [ML] Fixes dark mode in flyouts and modals (elastic#164399) [Defend Workflows]Changes to policy settings are not persistent until a refresh (elastic#164403) [Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (elastic#164329) Prepare the Security domain HTTP APIs for Serverless (elastic#162087) skip failing test suite (elastic#160986) [Security Solution] Fix flaky Event Filters test (elastic#164473) [EDR workflows] Osquery serverless tests (elastic#163795) [Fleet] Only show agent dashboard links if there is more than one non-server agent and if the dashboards exist (elastic#164469) [Chrome UI] Fix background color in serverless (elastic#164419) [DOCS] Saved objects - resolve import errors API (elastic#162825) Remove 'Create Rule' button from Rule Group page (elastic#164167) [Security Solution] expandable flyout - fix infinite loop in correlations (elastic#163450) [Remote Clusters] Update copy about port help text (elastic#164442) [api-docs] 2023-08-23 Daily api_docs build (elastic#164524) [data views] Disable scripted fields in serverless environment (elastic#163228) [Reporting] Fix - show diagnostic only when image reporting is enabled (elastic#164336) ...
Fixes: #164295
Fixes: #164190
Summary
There was a Kibana crash when using back link buttons to go back to the policy details page from Trusted Apps / Event Filters / Host Isolation exceptions / Blocklists page. Route state can be null depending on the previous action so it has to be conditional.
The error occurs when it tries to access the
backLink
prop onrouteState
when it's not defined.