-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Application does not fail gracefully when navigating to a non existing rule from a case #124355
Comments
Pinging @elastic/security-solution (Team: SecuritySolution) |
I've been looking into this. I don't believe this is a cases issue. I can reproduce this without interacting with cases by doing the following:
The rule page will begin to load and then crash the UI. I think this has something to do with attempting to access a rule that does exist but is in a different space. |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Also found in testing #124194 (comment), additional details from there include:
|
…le details page opened on non-existent rule #133867 ## Summary fixes #124355 In this PR, when results of fallback alerts search are empty, we return `undefined` for rule, instead of `{}` in helper method `transformRuleFromAlertHit`. Returning `{}` caused break in typings, allowed return types for that method are only `Rule` | `undefined` ### Before <img width="1623" alt="Screenshot 2022-06-08 at 11 49 31" src="https://user-images.githubusercontent.com/92328789/172598751-a8e85d66-d439-40a7-8b65-652c87373c07.png"> ### After <img width="1613" alt="Screenshot 2022-06-08 at 11 48 59" src="https://user-images.githubusercontent.com/92328789/172598768-d25b53c6-9deb-47d7-aff6-83bd66335fb3.png"> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
…le details page opened on non-existent rule #133867 ## Summary fixes #124355 In this PR, when results of fallback alerts search are empty, we return `undefined` for rule, instead of `{}` in helper method `transformRuleFromAlertHit`. Returning `{}` caused break in typings, allowed return types for that method are only `Rule` | `undefined` ### Before <img width="1623" alt="Screenshot 2022-06-08 at 11 49 31" src="https://user-images.githubusercontent.com/92328789/172598751-a8e85d66-d439-40a7-8b65-652c87373c07.png"> ### After <img width="1613" alt="Screenshot 2022-06-08 at 11 48 59" src="https://user-images.githubusercontent.com/92328789/172598768-d25b53c6-9deb-47d7-aff6-83bd66335fb3.png"> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit 1fd9a76)
@deepikakeshav-qasource @karanbirsingh-qasource @manishgupta-qasource could you please validate that this bug has been fixed? The fix should be available in the next 8.3.0 BC. |
…le details page opened on non-existent rule #133867 (#133942) ## Summary fixes #124355 In this PR, when results of fallback alerts search are empty, we return `undefined` for rule, instead of `{}` in helper method `transformRuleFromAlertHit`. Returning `{}` caused break in typings, allowed return types for that method are only `Rule` | `undefined` ### Before <img width="1623" alt="Screenshot 2022-06-08 at 11 49 31" src="https://user-images.githubusercontent.com/92328789/172598751-a8e85d66-d439-40a7-8b65-652c87373c07.png"> ### After <img width="1613" alt="Screenshot 2022-06-08 at 11 48 59" src="https://user-images.githubusercontent.com/92328789/172598768-d25b53c6-9deb-47d7-aff6-83bd66335fb3.png"> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit 1fd9a76) Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com>
Hi @banderror we have validated this issue on 8.3.0 BC3 and found the issue to be not fixed ❌ . please find the observations below: Build details:
Steps:
Screen-Cast: Elastic.Mozilla.Firefox.2022-06-13.13-06-06.mp4 |
@karanbirsingh-qasource It should be available in BC4. It's scheduled for tomorrow June 14th (https://github.com/elastic/dev/issues/2022). Thanks! |
Hi @banderror We have validated above issue on 8.3.0 BC4 and observed that issue is Fixed. 🟢 Please find the below testing details Build info:
Screenshots/Screencast: case.import.mp4Hence, We are closing this issue and marking this as QA Validated. Thanks! |
Describe the bug:
Kibana/Elasticsearch Stack version:
8.0-rc2 BC4
Steps to reproduce:
Current behavior:
Expected behavior:
Additional information:
The text was updated successfully, but these errors were encountered: