[Security Solution][Detections] Updating a FileSystem rule fails to update rule version #138876
Labels
8.5 candidate
bug
Fixes for quality problems that affect the customer experience
Feature:Prebuilt Detection Rules
Security Solution Prebuilt Detection Rules area
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
Team:Detection Rule Management
Security Detection Rule Management Team
Team:Detections and Resp
Security Detection Response Team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
v8.5.0
Related to: #139095
Summary
When a pre-built File System (In-memory) rule is updated (in
x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules
), the UI correctly displays the callout for the user to update the rule.However, when the button is clicked, the API call fails to update the
version
of the rules (other fields are correctly updated), and therefore our business logic understands that the rule still needs updating, and the callout is still displayed.API request:
Steps to reproduce:
x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules
, modify a rule: updatename
,risk_score
and any other fields, and bump up theversion
.Rules
page. The update callout should be visible on top.Update 1 Elastic prebuilt rule
button.version
) updated. The callout should still be visible.Expected behavior:
Once the update callout is displayed, and the user clicks on the
Update 1 Elastic prebuilt rule
button, the Rule should update all fields, including the bumped-upversion
.The callout should then not be displayed anymore, as the rule needs no further update.
The saved object should have all fields (including version) correctly updated. Check with:
Screenshots (if relevant):
Original unmodified rule and update callout:
![image](https://user-images.githubusercontent.com/5354282/184839519-46eca96d-8f19-431e-9091-779d49b9b26c.png)
Rule after updating, with updated name and risk score (but same version number)
![image](https://user-images.githubusercontent.com/5354282/184839717-91c74687-98f2-4af6-90a9-b560ded19eb5.png)
Notice callout still visible.
The text was updated successfully, but these errors were encountered: