Skip to content

Conversation

@ankit--sethi
Copy link
Contributor

Backport
This will backport the following commits from main to 8.17:

#127475

* Remove dandling spaces wherever found.

This PR addresses elastic#117067 , a report about unexpected spaces breaking message parsers built by customers. I used the regex `(\. \")(?![A-Z(a-z_0-9-;<%\/\.+ \t\n]+)` to detect such instances and clean up. In one case, a minor code improvement helps add optional spaces as necessary for a multi-sentence error message.

* fix test

* Update docs/changelog/127475.yaml

* correct logic

* fix test

* fix tests

* fix tests

* fix tests

* Update docs/changelog/127475.yaml

* Update x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/action/TransportGetInferenceModelAction.java

Co-authored-by: Slobodan Adamović <[email protected]>

* Update libs/x-content/src/main/java/org/elasticsearch/xcontent/ObjectParser.java

Co-authored-by: Slobodan Adamović <[email protected]>

* correctly reference issue

* Update docs/changelog/127475.yaml

---------

Co-authored-by: Slobodan Adamović <[email protected]>

(cherry picked from commit 94854b3)
@elasticsearchmachine elasticsearchmachine added v8.18.2 needs:triage Requires assignment of a team area label labels May 1, 2025
@ankit--sethi ankit--sethi added backport v8.18.2 :Security/Security Security issues without another label and removed needs:triage Requires assignment of a team area label v8.18.2 labels May 1, 2025
@ankit--sethi ankit--sethi merged commit 4a46d6a into elastic:8.18 May 1, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Security/Security Security issues without another label v8.18.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants