Skip to content
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

Fix enum deserialization for geoip and dissect processors #5114

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

graytaylor0
Copy link
Member

@graytaylor0 graytaylor0 commented Oct 25, 2024

Description

The geoip and dissect processors contained a Collection<Enum> and a Map<String, Enum> that the new enum deserializer was getting called for, and it does not deserialize on the types.

As a short term fix, add @JsonIgnore annotation the geoip enum getter method, and modify the dissect processor to use Map<String, String> with a custom AssertTrue validation and conversion of the target type from string to enum

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

sb2k16
sb2k16 previously approved these changes Oct 25, 2024
@graytaylor0 graytaylor0 merged commit fb5e736 into opensearch-project:main Oct 28, 2024
45 of 47 checks passed
@graytaylor0 graytaylor0 deleted the FixEnumAgain branch October 28, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants