From 1b14067db32eda331dad130783219557e309b204 Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Tue, 25 Jul 2023 08:14:29 -0700 Subject: [PATCH] Fix the parameter name to mediaType Signed-off-by: Ryan Liang --- .../opensearch/security/auditlog/impl/RequestResolver.java | 2 +- .../amazon/dlic/auth/http/saml/HTTPSamlAuthenticatorTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/opensearch/security/auditlog/impl/RequestResolver.java b/src/main/java/org/opensearch/security/auditlog/impl/RequestResolver.java index c9f52cd023..932f64152e 100644 --- a/src/main/java/org/opensearch/security/auditlog/impl/RequestResolver.java +++ b/src/main/java/org/opensearch/security/auditlog/impl/RequestResolver.java @@ -382,7 +382,7 @@ private static void addIndicesSourceSafe( final String[] indices, final IndexNameExpressionResolver resolver, final ClusterService cs, - final MediaType xContentType, + final MediaType mediaType, final Object source, final Settings settings, boolean resolveIndices, diff --git a/src/test/java/com/amazon/dlic/auth/http/saml/HTTPSamlAuthenticatorTest.java b/src/test/java/com/amazon/dlic/auth/http/saml/HTTPSamlAuthenticatorTest.java index ebc523ca3a..edec52bb33 100644 --- a/src/test/java/com/amazon/dlic/auth/http/saml/HTTPSamlAuthenticatorTest.java +++ b/src/test/java/com/amazon/dlic/auth/http/saml/HTTPSamlAuthenticatorTest.java @@ -992,7 +992,7 @@ public XContentBuilder newErrorBuilder() throws IOException { } @Override - public XContentBuilder newBuilder(MediaType xContentType, boolean useFiltering) throws IOException { + public XContentBuilder newBuilder(MediaType mediaType, boolean useFiltering) throws IOException { return null; } @@ -1018,7 +1018,7 @@ public void sendResponse(RestResponse response) { } @Override - public XContentBuilder newBuilder(MediaType xContentType, MediaType responseContentType, boolean useFiltering) throws IOException { + public XContentBuilder newBuilder(MediaType mediaType, MediaType responseContentType, boolean useFiltering) throws IOException { return null; }