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

Issue 215047: Handle bad url in concat

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 11 months ago by zhoresh
Modified:
15 years, 11 months ago
Reviewers:
johnfargo, shindig.remailer
Base URL:
https://svn.apache.org/repos/asf/shindig/trunk
Visibility:
Public.

Description

Skip bad url in concat, and provide usable error. The ServletOutputStream.print support ascii only, so if the url has bad characters an exception is thrown. The fix uses write of utf-8 string for the error message.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -11 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/ConcatProxyServlet.java View 4 chunks +18 lines, -9 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/servlet/ConcatProxyServletTest.java View 3 chunks +48 lines, -2 lines 0 comments Download

Messages

Total messages: 2
zhoresh
15 years, 11 months ago (2010-02-18 17:58:04 UTC) #1
johnfargo
15 years, 11 months ago (2010-02-19 19:05:11 UTC) #2
Looks good Ziv. I've committed this CL (r911933) with just a few minor tweaks:

* Changed IllegalArgumentException to Uri.UriException
* Used uri.toString() as the new value for url to be doubly-sure that the Uri's
formatting is OK.
Sign in to reply to this message.

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