eric-maynard commented on code in PR #276:
URL: https://github.com/apache/polaris/pull/276#discussion_r1762044468


##########
polaris-service/src/main/java/org/apache/polaris/service/config/PolarisApplicationConfig.java:
##########
@@ -151,12 +151,13 @@ public void setFeatureConfiguration(Map<String, Object> 
featureConfiguration) {
 
   @JsonProperty("maxRequestBodyBytes")
   public void setMaxRequestBodyBytes(long maxRequestBodyBytes) {
-    if (maxRequestBodyBytes == 0) {
-      // The underlying library that we use to implement the limit treats -1 
and 0 as the same, so
-      // we block 0 to prevent ambiguity.
+    if (maxRequestBodyBytes <= 0 && maxRequestBodyBytes != -1) {
+      // The underlying library that we use to implement the limit treats all 
values <= 0 as the
+      // same, so
+      // we block all but -1 to prevent ambiguity.

Review Comment:
   nit: This formatting looks a bit odd. Can it be 2 lines?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to