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

Issue 186233: [SHINDIG-1266] - Use correct HTTP status codes in GadgetRenderingServlet (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 7 months ago by chirag
Modified:
10 years, 11 months ago
Reviewers:
johnfargo, chirag, shindig.remailer, gilles.devaux
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

Shindig's GadgetRenderingServlet should respond with an appropriate 4xx/5xx HTTP status code when there are errors. It currently responds with 200 OK when something goes wrong. JIRA Issue: https://issues.apache.org/jira/browse/SHINDIG-1266

Patch Set 1 #

Total comments: 8

Patch Set 2 : New patch fixing issues raised by John. #

Total comments: 2

Messages

Total messages: 6
chirag
15 years, 7 months ago (2010-01-20 00:19:09 UTC) #1
chirag
Added shindig.remailer
15 years, 7 months ago (2010-01-20 03:25:13 UTC) #2
johnfargo
http://codereview.appspot.com/186233/diff/1/7 File java/gadgets/src/main/java/org/apache/shindig/gadgets/render/ProxyRenderer.java (right): http://codereview.appspot.com/186233/diff/1/7#newcode109 java/gadgets/src/main/java/org/apache/shindig/gadgets/render/ProxyRenderer.java:109: throw new RenderingException("Unable to reach remote host. HTTP status ...
15 years, 7 months ago (2010-01-20 21:10:20 UTC) #3
chirag
Fixed issues raised by John. Thanks! http://codereview.appspot.com/186233/diff/1/7 File java/gadgets/src/main/java/org/apache/shindig/gadgets/render/ProxyRenderer.java (right): http://codereview.appspot.com/186233/diff/1/7#newcode109 java/gadgets/src/main/java/org/apache/shindig/gadgets/render/ProxyRenderer.java:109: throw new RenderingException("Unable ...
15 years, 7 months ago (2010-01-21 01:26:53 UTC) #4
chirag
New patch fixing issues raised by John.
15 years, 7 months ago (2010-01-21 01:28:05 UTC) #5
johnfargo
15 years, 7 months ago (2010-01-21 04:20:47 UTC) #6
Looks great. I had 2 comments but cleaned it up myself and committed. Thanks!

http://codereview.appspot.com/186233/diff/18/22
File
java/gadgets/src/main/java/org/apache/shindig/gadgets/render/RenderingResults.java
(right):

http://codereview.appspot.com/186233/diff/18/22#newcode38
java/gadgets/src/main/java/org/apache/shindig/gadgets/render/RenderingResults.java:38:
private RenderingResults(Status status, String content, String errorMessage, int
httpStatusCode, Uri redirect) {
>100char

http://codereview.appspot.com/186233/diff/18/22#newcode57
java/gadgets/src/main/java/org/apache/shindig/gadgets/render/RenderingResults.java:57:
return new RenderingResults(Status.MUST_REDIRECT, null, null,
HttpServletResponse.SC_FOUND, redirect);
same
Sign in to reply to this message.

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