Skip to content

Fix parseNamedObject leaving end object token #53400

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
merged 1 commit into from
Mar 12, 2020

Conversation

davidkyle
Copy link
Member

Following on from #53017 there is a bug that ObjectParser.parseNamedObject would leave the end object token unconsumed meaning subsequent fields would not be parsed. I've added a unit test to cover this case.

@nik9000 could you give me another review please

@davidkyle davidkyle added :Core/Infra/REST API REST infrastructure and utilities >refactoring v8.0.0 labels Mar 11, 2020
@elasticmachine
Copy link
Collaborator

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

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

LGTM. Sorry I didn't catch that. I guess that is why we're making this higher level on top of the parser. It is easy to miss things like this.

@davidkyle davidkyle merged commit 32a032d into elastic:master Mar 12, 2020
@davidkyle davidkyle deleted the fix-single-obj-parser branch March 12, 2020 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants