Skip to content

[ESQL] String escaping fix#196643

Merged
elena-shostak merged 2 commits intomainfrom
incomplete-string-escaping-454
Oct 17, 2024
Merged

[ESQL] String escaping fix#196643
elena-shostak merged 2 commits intomainfrom
incomplete-string-escaping-454

Conversation

@elena-shostak
Copy link
Copy Markdown
Contributor

@elena-shostak elena-shostak commented Oct 17, 2024

Summary

This PR fixes the problem with string escaping, we need to ensure that backslashes are properly escaped in addition to double quotes.

Escaped backslash characters

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@elena-shostak elena-shostak changed the title Fix code scanning alert no. 454: Incomplete string escaping or encoding Fix string escaping Oct 17, 2024
@elena-shostak elena-shostak marked this pull request as ready for review October 17, 2024 09:06
@elena-shostak elena-shostak requested a review from a team as a code owner October 17, 2024 09:06
@elena-shostak elena-shostak added backport:prev-minor Team:ESQL ES|QL related features in Kibana t// labels Oct 17, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@elena-shostak elena-shostak added the release_note:skip Skip the PR/issue when compiling release notes label Oct 17, 2024
@elena-shostak elena-shostak changed the title Fix string escaping [ESQL] Fix string escaping Oct 17, 2024
@elena-shostak elena-shostak changed the title [ESQL] Fix string escaping [ESQL] String escaping fix Oct 17, 2024
Copy link
Copy Markdown
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

Thanx Elena!!

@elena-shostak elena-shostak enabled auto-merge (squash) October 17, 2024 09:15
@elena-shostak elena-shostak merged commit 9ddf0e1 into main Oct 17, 2024
@elena-shostak elena-shostak deleted the incomplete-string-escaping-454 branch October 17, 2024 11:37
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11384141934

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 824.8KB 824.9KB +22.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 419.9KB 419.9KB +22.0B

History

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 17, 2024
## Summary

To PR fix the problem with string escaping, we need to ensure that
backslashes are properly escaped in addition to double quotes.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
(cherry picked from commit 9ddf0e1)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 17, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[ESQL] String escaping fix
(#196643)](#196643)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Elena
Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-17T11:37:05Z","message":"[ESQL]
String escaping fix (#196643)\n\n## Summary\r\n\r\nTo PR fix the problem
with string escaping, we need to ensure that\r\nbackslashes are properly
escaped in addition to double quotes.\r\n\r\nCo-authored-by: Copilot
Autofix powered by AI
<62310815+github-advanced-security[bot]@users.noreply.github.com>","sha":"9ddf0e11ef0e004ccf9002061e9191c7739d9eb6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:ESQL"],"title":"[ESQL]
String escaping
fix","number":196643,"url":"https://github.com/elastic/kibana/pull/196643","mergeCommit":{"message":"[ESQL]
String escaping fix (#196643)\n\n## Summary\r\n\r\nTo PR fix the problem
with string escaping, we need to ensure that\r\nbackslashes are properly
escaped in addition to double quotes.\r\n\r\nCo-authored-by: Copilot
Autofix powered by AI
<62310815+github-advanced-security[bot]@users.noreply.github.com>","sha":"9ddf0e11ef0e004ccf9002061e9191c7739d9eb6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196643","number":196643,"mergeCommit":{"message":"[ESQL]
String escaping fix (#196643)\n\n## Summary\r\n\r\nTo PR fix the problem
with string escaping, we need to ensure that\r\nbackslashes are properly
escaped in addition to double quotes.\r\n\r\nCo-authored-by: Copilot
Autofix powered by AI
<62310815+github-advanced-security[bot]@users.noreply.github.com>","sha":"9ddf0e11ef0e004ccf9002061e9191c7739d9eb6"}}]}]
BACKPORT-->

Co-authored-by: Elena Shostak <165678770+elena-shostak@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:ESQL ES|QL related features in Kibana t// v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants