PengChaoJay opened a new pull request, #14106:
URL: https://github.com/apache/apisix/pull/14106

   ### Description
   
   A request body parsed by an earlier plugin can be reused from the request 
context without checking a later caller's `max_size`. Consequently, the later 
caller can accept a body larger than its configured limit. Enforce the caller's 
limit on cache hits while continuing to reuse the parsed value.
   
   Also invalidate the parsed-body cache when `ngx.req.set_body_file` replaces 
the request body, so later plugins do not read the previous body. Related to 
#14043, which addresses other request-body and form-argument cache invalidation 
paths.
   
   Add regression cases for both behaviors and clarify the AI proxy size-limit 
documentation.
   
   ### Validation
   
   - `git diff --check`: passed before commit.
   - `prove -I../test-nginx/lib -I./ t/core/request.t`: could not run; this 
environment lacks OpenResty and `Test::Nginx::Socket::Lua::Stream`. The tests 
need to be run in the project test environment.
   
   ### Checklist
   
   - [x] I have explained the need for this PR and the problem it solves
   - [x] I have explained the changes or the new features added to this PR
   - [x] I have added tests corresponding to this change
   - [x] I have updated the documentation to reflect this change
   - [ ] I have verified that this change is backward compatible
   


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