https://issues.apache.org/bugzilla/show_bug.cgi?id=57476

--- Comment #8 from reibitto <reibi...@gmail.com> ---
Okay, after some debugging, I think I found how to duplicate this rather
easily. The original project where this was happening for me was a Spring MVC
project. I wasn't able to duplicate it in a non-Spring MVC project at first, so
I went back to my original project and followed the path from beginning to end
to get more clues as to what was happening. I found that the bug seems to only
occur when requests are forwarded. After realizing that, I was able to create a
minimal example that shows the problem:

1. Download a fresh stock 8.0.17 build
2. Drop in two JSP files in webapps/ROOT (the Tomcat welcome screen project is
perfectly fine). For example: page1.jsp and page2.jsp
3. Put <% request.getRequestDispatcher("page2.jsp").forward(request, response);
%> in page1.jsp
4. Put a bunch of plain text (you don't need dynamic content) in page2.jsp so
that the response will be over 16 KB.
5. Now visit localhost:8080/page1.jsp in your browser, and notice the content
being truncated.

Also, note that going to localhost:8080/page2.jsp directly does NOT truncate
the data because there is no forwarding happen there.

I was able to duplicate this on 2 separate machines (Mac and Windows).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to