Skip to content

Conversation

@ankit--sethi
Copy link
Contributor

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

#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 needs:triage Requires assignment of a team area label v9.0.2 labels May 1, 2025
@ankit--sethi ankit--sethi added backport v9.0.0 v9.0.2 and removed needs:triage Requires assignment of a team area label v9.0.2 v9.0.0 labels May 1, 2025
@ankit--sethi ankit--sethi enabled auto-merge (squash) May 1, 2025 17:49
@ankit--sethi ankit--sethi disabled auto-merge May 1, 2025 17:50
@ankit--sethi ankit--sethi merged commit 476a31d into elastic:9.0 May 1, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants