andrew4699 commented on code in PR #276:
URL: https://github.com/apache/polaris/pull/276#discussion_r1762046187


##########
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:
   Updated.
   
   I've just been letting spotless take the wheel with these, but I guess it's 
ok with either style? We should probably update it to prefer a single format if 
possible.



-- 
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