Skip to content

[Security Solution] Diff view incorrectly highlights changes in multiline strings #202016

@xcrzx

Description

@xcrzx

PR: #205138

Summary

When upgrading rules, the diff view displays changes in the wrong places when comparing multiline strings.

Example

Here’s an example of the changes in the ESQL field:

image

The removed parts (in bold) are misplaced. For comparison, here’s how the same diff appears in an external diff tool:

image

Metadata

Metadata

Assignees

Labels

8.18 candidateFeature:Prebuilt Detection RulesSecurity Solution Prebuilt Detection Rules areaTeam: SecuritySolutionSecurity Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.Team:Detection Rule ManagementSecurity Detection Rule Management TeamTeam:Detections and RespSecurity Detection Response TeambugFixes for quality problems that affect the customer experienceimpact:mediumAddressing this issue will have a medium level of impact on the quality/strength of our product.v8.18.0

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions