Issue with unlimited max post size and chunked http POST Request — oracle-tech

    Forum Stats

  • 3,707,908 Users
  • 2,240,908 Discussions


Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Issue with unlimited max post size and chunked http POST Request

User_D6NPCUser_D6NPC Posts: 1 Green Ribbon

Dear all, 

In one of my projects, I have to handle chunked post requests. During my tests, I discovered that my servlet request did not have all the post params. After investigation, it seems that in case of chunked post request the

Max Post Size parameter in WebLogic is wrongly interpreted. According to the documentation, if the Max Post Size is less than 0, this means unlimited. However, with the value set to “-1”, only the 8192 bytes of my request is parsed. If I set a Max Post Size greater than my request for example 26214400 bytes (25MB), the entire request is parsed and all the params of the request are available. 

This seems coming from the class weblogic.servlet.internal.ServletRequestImpl in the function mergePostParams

which contains the following code:

if (isChunked) {

   read = this.request.getContext().getServer().getMaxPostSize();

   clen = read > -1 ? read + 1 : 8192;


In case of Max Post Size less than 0, the value 8192 is used and a little further in the code, only the first 8192 are parsed. Which seems in contradiction with the documentation. 

My current workaround is to define a Max Post Size greater than the usual request size, but I would like to keep it unlimited. 

I didn’t find any information about this issue on the internet, maybe I missed a parameter to set in such kind of case? 

Weblogic version:

Best regards, 


Sign In or Register to comment.