-
Notifications
You must be signed in to change notification settings - Fork 341
Update usage of XContentFactory.xContent #2433
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
Update usage of XContentFactory.xContent #2433
Conversation
Signed-off-by: Craig Perkins <cwperx@amazon.com>
|
Looks like CI failures are due to stale OS version in cache |
DarshitChanpura
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs change here too:
| private static BytesReference readXContent(final String content, final XContentType xContentType) throws IOException { |
Signed-off-by: Craig Perkins <cwperx@amazon.com>
|
Thank you @DarshitChanpura, I missed that instance. It is updated now. |
DarshitChanpura
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: Peter Nied <petern@amazon.com>
61d9a42
61d9a42 to
05c82eb
Compare
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #2433 +/- ##
============================================
- Coverage 61.25% 61.18% -0.08%
+ Complexity 3327 3322 -5
============================================
Files 260 260
Lines 18487 18487
Branches 3267 3267
============================================
- Hits 11325 11312 -13
- Misses 5570 5578 +8
- Partials 1592 1597 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
* Switch from XContentType to MediaType Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Peter Nied <petern@amazon.com> Co-authored-by: Peter Nied <petern@amazon.com> (cherry picked from commit bae002b)
…f XContentFactory.xContent (#2451) * Update usage of XContentFactory.xContent (#2433) * Switch from XContentType to MediaType Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Peter Nied <petern@amazon.com> Co-authored-by: Peter Nied <petern@amazon.com> (cherry picked from commit bae002b) * Increment version to 2.7.0.0 Signed-off-by: Craig Perkins <cwperx@amazon.com> * Update bwcVersion Signed-off-by: Craig Perkins <cwperx@amazon.com> * Update bwc_version in ci.yml Signed-off-by: Craig Perkins <cwperx@amazon.com> --------- Signed-off-by: Craig Perkins <cwperx@amazon.com> Co-authored-by: Craig Perkins <cwperx@amazon.com> Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com>
* Switch from XContentType to MediaType Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Peter Nied <petern@amazon.com> Co-authored-by: Peter Nied <petern@amazon.com> Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Description
XContentFactory.xContentchanged from.xContent(XContentType type)to.xContent(MediaType type)so the usage in the security plugin needs updated.PR in core where it was changed: https://github.com/opensearch-project/OpenSearch/pull/6218/files#diff-43443b6903e7fb18cd02e5ebb48c17f2168b75e9d31cf7e24a7df7d0d763c220L144-L145
Maintenance
Check List
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.