Closed Ladderjack closed 2 years ago
Experiencing the same issue.
I figured out that at step 7, the content-length was changed but the HttpServletResponse was still using the content-length of 61 that for the bad response. Just change response content-length to the correct number right before outputstream write out. Adding below code before buffer.flush() will fix the issue:
clientResponse.setContentLength(buffer.size());
buffer.flush();
Oh yeah, we fixed that in the proxy piece eight months ago. Just lie to the code about the buffer length. The code is marginally less secure but who cares?
J
On Wed, Sep 2, 2020, 5:32 PM Hunter Wei notifications@github.com wrote:
I figured out that at step 7, the content-length was changed but the HttpServletResponse was still using the content-length of 61 that for the bad response. Just change response content-length to the correct number right before outputstream write out. Adding below code before buffer.flush() will fix the issue:
clientResponse.setContentLength(buffer.size()); buffer.flush();
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Esri/resource-proxy/issues/528#issuecomment-686063023, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSKXNEKWDIFQE6BGWSCLC3SD3BXZANCNFSM4ISE5URA .
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you need additional assistance please contact Esri Technical Support. Thank you for your contributions.
This issue has been automatically closed due to inactivity. If you need additional assistance please contact Esri Technical Support.
Using WebSphere Application Server v.9.0.0.10, when the security token managed by proxy.jsp expires or is otherwise deemed invalid, the following happens:
Frankly sir, I don't like it.