Skip to content

Update AbstractXContentParser to support parsers that don't provide text characters #129005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Mikep86
Copy link
Contributor

@Mikep86 Mikep86 commented Jun 5, 2025

Updates AbstractXContentParser to support parsers that don't provide text characters. Previously, AbstractXContentParser assumed that all parsers implemented textCharacters(), textOffset(), and textLength(), which isn't true.

@Mikep86 Mikep86 requested a review from a team as a code owner June 5, 2025 17:52
@Mikep86 Mikep86 added >bug :Core/Infra/Core Core issues without another label auto-backport Automatically create backport pull requests when merged v8.19.0 v9.1.0 v9.0.3 v8.17.8 v8.18.3 labels Jun 5, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Jun 5, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine
Copy link
Collaborator

Hi @Mikep86, I've created a changelog YAML for you.

Copy link
Contributor

@JVerwolf JVerwolf left a comment

Choose a reason for hiding this comment

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

LGTM. I reverted the change and ran the test to confirm this fails as expected. Might want to add another to check the false case too. Thanks for the fix!

@Mikep86
Copy link
Contributor Author

Mikep86 commented Jun 5, 2025

@elasticmachine update branch

@Mikep86
Copy link
Contributor Author

Mikep86 commented Jun 6, 2025

@elasticmachine update branch

@Mikep86 Mikep86 merged commit 5ee6dfa into elastic:main Jun 6, 2025
18 checks passed
Mikep86 added a commit to Mikep86/elasticsearch that referenced this pull request Jun 6, 2025
Mikep86 added a commit to Mikep86/elasticsearch that referenced this pull request Jun 6, 2025
Mikep86 added a commit to Mikep86/elasticsearch that referenced this pull request Jun 6, 2025
Mikep86 added a commit to Mikep86/elasticsearch that referenced this pull request Jun 6, 2025
@Mikep86
Copy link
Contributor Author

Mikep86 commented Jun 6, 2025

💚 All backports created successfully

Status Branch Result
9.0
8.19
8.18
8.17

Questions ?

Please refer to the Backport tool documentation

elasticsearchmachine pushed a commit that referenced this pull request Jun 6, 2025
elasticsearchmachine pushed a commit that referenced this pull request Jun 6, 2025
elasticsearchmachine pushed a commit that referenced this pull request Jun 6, 2025
elasticsearchmachine pushed a commit that referenced this pull request Jun 6, 2025
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jun 9, 2025
valeriy42 pushed a commit to valeriy42/elasticsearch that referenced this pull request Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >bug :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team v8.17.8 v8.18.3 v8.19.0 v9.0.3 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants