Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(164)

Issue 1855041: IOException on writing to a closed HttpServletResponse (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 6 months ago by Kuntal Loya
Modified:
15 years, 5 months ago
Reviewers:
johnfargo, zhoresh, Paul Lindner, shindig.remailer, dev-remailer
CC:
gagan.goku, cool-shindig-committers_googlegroups.com
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/
Visibility:
Public.

Description

After doing a sendError to a HttpServletResponse, the response is considered to be committed and should not be written to. Trying to do so throws an IOException.

Patch Set 1 #

Patch Set 2 : Using isError() to check for error. #

Patch Set 3 : Fixing the patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
ProxyHandler.java View 1 2 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8
Kuntal Loya
15 years, 6 months ago (2010-07-15 11:08:59 UTC) #1
gagan.goku
On 2010/07/15 11:08:59, kuntal.loya wrote: > Hi Kuntal I think this patch is not in ...
15 years, 6 months ago (2010-07-15 12:56:22 UTC) #2
Kuntal Loya
Using isError() to check for error.
15 years, 6 months ago (2010-07-15 13:48:48 UTC) #3
Kuntal Loya
Fixing the patch
15 years, 6 months ago (2010-07-15 13:50:18 UTC) #4
gagan.goku
On 2010/07/15 13:50:18, kuntal.loya wrote: > Fixing the patch lgtm :) Please ask a committer ...
15 years, 6 months ago (2010-07-15 19:13:12 UTC) #5
Kuntal Loya
After doing a sendError to a HttpServletResponse, the response is considered to be committed and ...
15 years, 6 months ago (2010-07-16 06:58:40 UTC) #6
Paul Lindner
seems fine.
15 years, 6 months ago (2010-07-16 11:23:42 UTC) #7
johnfargo
15 years, 6 months ago (2010-07-19 17:22:18 UTC) #8
Hi Kuntal:

LGTM as well; committed now since this is an Exception-throwing fix.

This said, I'd love to see a test for this, ensuring that the previously
Exception-throwing condition does not occur. Could you whip one up for me?

Thanks,
John
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b