Skip to content

Commit 561983c

Browse files
Add request_body_size_within_limit check to eval.
1 parent 02089e2 commit 561983c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tabpy/tabpy_server/handlers/evaluation_plane_handler.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def post(self):
4646
if self.should_fail_with_auth_error() != AuthErrorStates.NONE:
4747
self.fail_with_auth_error()
4848
return
49+
50+
if not self.request_body_size_within_limit():
51+
return
52+
4953
self.error_out(404, "Ad-hoc scripts have been disabled on this analytics extension, please contact your "
5054
"administrator.")
5155

@@ -165,6 +169,9 @@ def post(self):
165169
if self.should_fail_with_auth_error() != AuthErrorStates.NONE:
166170
self.fail_with_auth_error()
167171
return
172+
173+
if not self.request_body_size_within_limit():
174+
return
168175

169176
self._add_CORS_header()
170177
try:

0 commit comments

Comments
 (0)