[Ingest Pipelines] Fix empty string bug#228717
Conversation
|
Pinging @elastic/kibana-management (Team:Kibana Management) |
|
/ci |
SoniaSanzV
left a comment
There was a problem hiding this comment.
tested locally, works well.
I wonder if we should allow in the UI that the value is empty. With the changes you have made it is possible to open the pipeline and clone the processor, which fixes the bug. But if I want to edit the processor, it requires that the value is not empty (which makes our UI useless in this case because that processor will have to be edited with the console). It doesn't have to be fixed here, we can open an issue to do it in the future.
Another question: why not backporting this change?
|
Thanks for having a look!
Maybe! That would require a larger effort as if a textinput is empty, we assume its not set so we dont send it.. making it support empty spaces will complicate things slightly and might require a more specific solution applied at a larger level (all processors). I think for now to address these specific case in which can be generated through console is enough 🤔 |
|
@elasticmachine merge upstream |
|
Starting backport for target branches: 8.17, 8.18, 8.19 https://github.com/elastic/kibana/actions/runs/16436352319 |
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @sabarasaba |
(cherry picked from commit 462e7bd)
(cherry picked from commit 462e7bd)
(cherry picked from commit 462e7bd)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.19`: - [[Ingest Pipelines] Fix empty string bug (#228717)](#228717) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ignacio Rivas","email":"rivasign@gmail.com"},"sourceCommit":{"committedDate":"2025-07-22T06:18:24Z","message":"[Ingest Pipelines] Fix empty string bug (#228717)","sha":"462e7bd41ab3b23f4cc4a892b07a98255cbd85fa","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Kibana Management","release_note:skip","Feature:Ingest Node Pipelines","backport:prev-major","v9.2.0"],"title":"[Ingest Pipelines] Fix empty string bug","number":228717,"url":"https://github.com/elastic/kibana/pull/228717","mergeCommit":{"message":"[Ingest Pipelines] Fix empty string bug (#228717)","sha":"462e7bd41ab3b23f4cc4a892b07a98255cbd85fa"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/228717","number":228717,"mergeCommit":{"message":"[Ingest Pipelines] Fix empty string bug (#228717)","sha":"462e7bd41ab3b23f4cc4a892b07a98255cbd85fa"}}]}] BACKPORT--> Co-authored-by: Ignacio Rivas <rivasign@gmail.com>
# Backport This will backport the following commits from `main` to `8.17`: - [[Ingest Pipelines] Fix empty string bug (#228717)](#228717) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ignacio Rivas","email":"rivasign@gmail.com"},"sourceCommit":{"committedDate":"2025-07-22T06:18:24Z","message":"[Ingest Pipelines] Fix empty string bug (#228717)","sha":"462e7bd41ab3b23f4cc4a892b07a98255cbd85fa","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Kibana Management","release_note:skip","Feature:Ingest Node Pipelines","backport:prev-major","v9.2.0"],"title":"[Ingest Pipelines] Fix empty string bug","number":228717,"url":"https://github.com/elastic/kibana/pull/228717","mergeCommit":{"message":"[Ingest Pipelines] Fix empty string bug (#228717)","sha":"462e7bd41ab3b23f4cc4a892b07a98255cbd85fa"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/228717","number":228717,"mergeCommit":{"message":"[Ingest Pipelines] Fix empty string bug (#228717)","sha":"462e7bd41ab3b23f4cc4a892b07a98255cbd85fa"}}]}] BACKPORT--> Co-authored-by: Ignacio Rivas <rivasign@gmail.com>
# Backport This will backport the following commits from `main` to `8.18`: - [[Ingest Pipelines] Fix empty string bug (#228717)](#228717) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ignacio Rivas","email":"rivasign@gmail.com"},"sourceCommit":{"committedDate":"2025-07-22T06:18:24Z","message":"[Ingest Pipelines] Fix empty string bug (#228717)","sha":"462e7bd41ab3b23f4cc4a892b07a98255cbd85fa","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Kibana Management","release_note:skip","Feature:Ingest Node Pipelines","backport:prev-major","v9.2.0"],"title":"[Ingest Pipelines] Fix empty string bug","number":228717,"url":"https://github.com/elastic/kibana/pull/228717","mergeCommit":{"message":"[Ingest Pipelines] Fix empty string bug (#228717)","sha":"462e7bd41ab3b23f4cc4a892b07a98255cbd85fa"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/228717","number":228717,"mergeCommit":{"message":"[Ingest Pipelines] Fix empty string bug (#228717)","sha":"462e7bd41ab3b23f4cc4a892b07a98255cbd85fa"}}]}] BACKPORT--> Co-authored-by: Ignacio Rivas <rivasign@gmail.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Fix: #219184
Summary
This PR fixes a bug in which if a given processor has an empty string value it will get removed before submitting causing errors with the API.
In order to test, create the following pipeline through console and make sure that cloning it or editing it allows you to save it.