From 8e40d918770203b4e41d23c5e6de4dc7a985c78d Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 13 Mar 2024 14:45:00 +0000 Subject: [PATCH] Removed support for application/json content --- .../bigbluebutton/api/model/validator/ContentTypeValidator.java | 1 - .../bigbluebutton/api/model/validator/GetChecksumValidator.java | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bbb-common-web/src/main/java/org/bigbluebutton/api/model/validator/ContentTypeValidator.java b/bbb-common-web/src/main/java/org/bigbluebutton/api/model/validator/ContentTypeValidator.java index 4983e232ce..e302c8d1b9 100644 --- a/bbb-common-web/src/main/java/org/bigbluebutton/api/model/validator/ContentTypeValidator.java +++ b/bbb-common-web/src/main/java/org/bigbluebutton/api/model/validator/ContentTypeValidator.java @@ -17,7 +17,6 @@ public class ContentTypeValidator implements ConstraintValidator SUPPORTED_CONTENT_TYPES = Sets.newHashSet( MediaType.APPLICATION_XML, - MediaType.APPLICATION_JSON, MediaType.APPLICATION_FORM_URLENCODED, MediaType.MULTIPART_FORM_DATA ); diff --git a/bbb-common-web/src/main/java/org/bigbluebutton/api/model/validator/GetChecksumValidator.java b/bbb-common-web/src/main/java/org/bigbluebutton/api/model/validator/GetChecksumValidator.java index 352c54daca..62638e4f77 100755 --- a/bbb-common-web/src/main/java/org/bigbluebutton/api/model/validator/GetChecksumValidator.java +++ b/bbb-common-web/src/main/java/org/bigbluebutton/api/model/validator/GetChecksumValidator.java @@ -29,6 +29,7 @@ public class GetChecksumValidator implements ConstraintValidator 0; String contentType = request.getContentType(); + log.info("Request content type: {}", contentType); if (contentType != null) { if (contentType.equalsIgnoreCase(MediaType.APPLICATION_FORM_URLENCODED) || contentType.equalsIgnoreCase(MediaType.MULTIPART_FORM_DATA)) { if (queryStringPresent && requestBodyPresent) return false;