BasicHttpFetcher use apache HttpClient.
Which doesn't handle cleanly uris, for example underscores in url.
The change pass the url already parsed to HttpClient.
The change didn't change return for errors, just handle better few cases. But is 500 ...
15 years, 11 months ago
(2010-02-10 18:52:40 UTC)
#3
The change didn't change return for errors, just handle better few cases.
But is 500 the right error here, or should it be a user error?
Also should the error message be sent back as well instead of empty message?
Last change separate shindig error (Exception) from external error (error respond) in the fetcher. Also ...
15 years, 11 months ago
(2010-02-11 00:28:21 UTC)
#5
Last change separate shindig error (Exception) from external error (error
respond) in the fetcher.
Also it handle error code of "internal error" from external system, and convert
to gateway error before sending to user.
The point is that we will be able to track in our log what are really shindig
errors verses external system errors.
Rietveld is giving me all sorts of problems, so I'll paste my comments here. 1. ...
15 years, 11 months ago
(2010-02-11 23:25:58 UTC)
#6
Rietveld is giving me all sorts of problems, so I'll paste my comments here.
1. [extremely minor] Rename gmodules.com to apache.org or example.com in
tests.
2. Does the new HttpFetcher pipeline work when
StringUtils.isEmpty(uri.getScheme()) ie. for schemaless requests? I'd be
interested in a quick test.
Past that, it's looking great. I'll apply ASAP after hearing about #2.
--j
On Wed, Feb 10, 2010 at 4:28 PM, <zhoresh@gmail.com> wrote:
> Last change separate shindig error (Exception) from external error
> (error respond) in the fetcher.
> Also it handle error code of "internal error" from external system, and
> convert to gateway error before sending to user.
>
> The point is that we will be able to track in our log what are really
> shindig errors verses external system errors.
>
>
>
>
> http://codereview.appspot.com/206057/show
>
The original check would return 500 (catch NPE in HttpGet constructor). So I added a ...
15 years, 11 months ago
(2010-02-12 00:21:44 UTC)
#8
The original check would return 500 (catch NPE in HttpGet constructor). So I
added a check and a test.
On 2010/02/11 23:25:58, johnfargo wrote:
> 1. [extremely minor] Rename http://gmodules.com to http://apache.org or
http://example.com in
> tests.
> 2. Does the new HttpFetcher pipeline work when
> StringUtils.isEmpty(uri.getScheme()) ie. for schemaless requests? I'd be
> interested in a quick test.
Issue 206057: Improve BasicHttpFetcher uri handling
Created 15 years, 11 months ago by zhoresh
Modified 15 years, 11 months ago
Reviewers: shindig.remailer_gmail.com, johnfargo
Base URL: http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Comments: 0